CN107645357A - Transmit the incomplete restoration methods of file and device - Google Patents

Transmit the incomplete restoration methods of file and device Download PDF

Info

Publication number
CN107645357A
CN107645357A CN201610581670.6A CN201610581670A CN107645357A CN 107645357 A CN107645357 A CN 107645357A CN 201610581670 A CN201610581670 A CN 201610581670A CN 107645357 A CN107645357 A CN 107645357A
Authority
CN
China
Prior art keywords
check code
original
sub
subfile block
piecemeal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610581670.6A
Other languages
Chinese (zh)
Other versions
CN107645357B (en
Inventor
徐禄勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610581670.6A priority Critical patent/CN107645357B/en
Priority to PCT/CN2017/076158 priority patent/WO2018014564A1/en
Publication of CN107645357A publication Critical patent/CN107645357A/en
Application granted granted Critical
Publication of CN107645357B publication Critical patent/CN107645357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Abstract

The invention discloses one kind to transmit the incomplete restoration methods of file, including:When the file that the transmitting terminal received is sent is imperfect, piecemeal processing is carried out to the file received to obtain the first subfile block;Calculate the first sub- check code of the first subfile block;The piecemeal start-stop information of first subfile block and the first sub- check code are sent to transmitting terminal, wherein, when receiving piecemeal start-stop information and the first sub- check code, transmitting terminal calculates the first original sub- check code of the first original subfile block in original document corresponding to piecemeal start-stop information, and when the original sub- check code of the first sub- check code and first is inconsistent, transmitting terminal retransmits the first original subfile block.The invention also discloses one kind to transmit the incomplete recovery device of file.The present invention realize the file received it is imperfect when retransmit the first subfile block, reduce the data volume of file retransmission, improve the speed and efficiency of file retransmission, ensure that the integrality of file.

Description

Transmit the incomplete restoration methods of file and device
Technical field
The present invention relates to technical field of the computer network, more particularly to a kind of transmission incomplete recovery of file Method and device.
Background technology
File transfer technology is an important component of computer networking technology, file general at present Transmission technology includes file copy, ftp file transfer protocol, TCP/IP host-host protocols etc..Passed in file During defeated, it sometimes appear that loss of data the problem of (or damage), to solve this problem, it is necessary to Integrity verification is carried out to the file data received.Common data integrity validation algorithm includes:MD5 And SHA1.Requirement of the SHA1 algorithms to networking components such as routers is higher, and MD5 is sent out by RSA Bright a kind of Message Digest 5, the advantages of having quickly and efficiently.
In addition, the application program developed using JAVA language, in that context it may be convenient to embedded MD5 algorithms.Mesh Before, the download resource that the upper many external websites of Internet provide can all provide a md5 checking text simultaneously Part.A md5 coding is carried out to whole file in receiving terminal, once authentication failed, then by file retransmission One time.
But this integrity checking method is needed whole file retransmission one time, the file data of transmission Measure larger, expend substantial amounts of resource, greatly influence file transfer speed and efficiency, or even can also cause Network congestion.
The content of the invention
The present invention provides a kind of incomplete restoration methods of transmission file and device, it is intended to solves in file not Retransmit whole file when complete and influence the technical problem of file transfer speed and efficiency.
To achieve the above object, a kind of transmission incomplete restoration methods of file provided by the invention, it is described The transmission incomplete restoration methods of file comprise the following steps:
When the file that the transmitting terminal received is sent is imperfect, piecemeal is carried out to the file received Handle to obtain the first subfile block;
Calculate the first sub- check code of the first subfile block;
The piecemeal start-stop information of the first subfile block and the first sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the first sub- check code, the transmission It is first original to calculate the first original subfile block in original document corresponding to the piecemeal start-stop information for end Sub- check code, and in the described first sub- check code and inconsistent the described first original sub- check code, it is described Transmitting terminal retransmits the first original subfile block.
Preferably, it is described by the piecemeal start-stop information of the first subfile block and the first sub- check code Sending to the step of transmitting terminal includes:
The piecemeal start-stop information of the first subfile block and the first sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the first sub- check code, the transmission End calculates the first original of the first original subfile block corresponding to piecemeal start-stop information described in the original document Begin sub- check code, and inconsistent and described in the described first sub- check code and the described first original sub- check code When the data volume of first original subfile block is more than preset value, the transmitting terminal feeds back the first original son The excessive prompt message of the data volume of blocks of files;
When receiving the prompt message of the transmitting terminal feedback, the first subfile block is carried out Piecemeal is handled to obtain the 3rd subfile block;
Calculate the 3rd sub- check code of the 3rd subfile block;
The piecemeal start-stop information of the 3rd subfile block and the 3rd sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the three sub- check code, the transmission End calculates the 3rd original of the 3rd original subfile block corresponding to piecemeal start-stop information described in the original document Begin sub- check code, and inconsistent and described in the 3rd sub- check code and the described 3rd original sub- check code When the data volume of 3rd original subfile block is less than or equal to preset value, the transmitting terminal retransmits the described 3rd Original subfile block.
Preferably, it is described by the piecemeal start-stop information of the first subfile block and the first sub- check code Send the step of transmitting terminal, the transmission incomplete restoration methods of file also include:
It is original based on described first received when the described first original subfile block received is complete Subfile block and the second subfile block calculate the first check code of the file received, wherein, it is described Second subfile block is the blocks of files in addition to the first subfile block after the file block is handled;
When the second check code of first check code and original document is inconsistent, second son is calculated Second sub- check code of blocks of files;
The piecemeal start-stop information of the second subfile block and the second sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the second sub- check code, the transmission End calculates the second original of the second original subfile block corresponding to piecemeal start-stop information described in the original document Begin sub- check code, and inconsistent and described in the described second sub- check code and the described second original sub- check code When the data volume of second original subfile block is less than or equal to preset value, the transmitting terminal retransmits described second Original subfile block.
Preferably, it is described by the piecemeal start-stop information of the first subfile block and the first sub- check code Sending to the step of transmitting terminal includes:
The piecemeal start-stop information of the first subfile block and the first sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the first sub- check code, the transmission End calculates the first original of the first original subfile block corresponding to piecemeal start-stop information described in the original document Begin sub- check code, and when the described first sub- check code is consistent with the described first original sub- check code, it is described Transmitting terminal feeds back the complete prompt message of the first subfile block;
When receiving the complete prompt message of the first subfile block, the of the second subfile block is calculated Two sub- check codes, wherein, the second subfile block is to remove the first subfile after the file block is handled Blocks of files outside block;
The piecemeal start-stop information of the second subfile block and the second sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the second sub- check code, the transmission End calculates the second original of the second original subfile block corresponding to piecemeal start-stop information described in the original document Begin sub- check code, and inconsistent and described in the described second sub- check code and the described second original sub- check code When the data volume of second original subfile block is less than or equal to preset value, the transmitting terminal retransmits described second Original subfile block.
In addition, to achieve the above object, the present invention also provides a kind of transmission incomplete restoration methods of file, The transmission incomplete restoration methods of file comprise the following steps:
When the file that the transmitting terminal received is sent is imperfect, piecemeal is carried out to the file received Handle to obtain multiple subfile blocks;
Calculate the sub- check code of each subfile block;
The piecemeal start-stop information of each subfile block and the sub- check code are sent to the transmission End, wherein, when receiving the piecemeal start-stop information and the sub- check code, the transmitting terminal calculates The original sub- check code of each original subfile block corresponding to the information of piecemeal start-stop described in original document, and It is described when the check code inconsistent with the corresponding original sub- check code in the sub- check code be present Transmitting terminal retransmits original subfile block corresponding to the inconsistent check code.
In addition, to achieve the above object, the present invention also provides a kind of transmission incomplete recovery device of file, The transmission incomplete recovery device of file includes:
First piecemeal module, when the file for being sent in the transmitting terminal received is imperfect, to receiving The file carry out piecemeal processing to obtain the first subfile block;
First computing module, for calculating the first sub- check code of the first subfile block;
First sending module, for by the piecemeal start-stop information of the first subfile block and it is described first son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and first son During check code, first in original document corresponding to the transmitting terminal calculating piecemeal start-stop information is original First original sub- check code of subfile block, and in the described first sub- check code and the described first original sub- school Test code it is inconsistent when, the transmitting terminal retransmits the first original subfile block.
Preferably, first sending module includes:
First transmitting element, for by the piecemeal start-stop information of the first subfile block and it is described first son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and first son During check code, the transmitting terminal calculates the first original corresponding to piecemeal start-stop information described in the original document First original sub- check code of beginning subfile block, and in the described first sub- check code and the described first original son Check code is inconsistent and when the data volume of the first original subfile block is more than preset value, the transmitting terminal Feed back the excessive prompt message of the data volume of the described first original subfile block;
Blocking unit, for when receiving the prompt message of transmitting terminal feedback, to described the One subfile block carries out piecemeal processing to obtain the 3rd subfile block;
First computing unit, for calculating the 3rd sub- check code of the 3rd subfile block;
Second transmitting element, for by the piecemeal start-stop information of the 3rd subfile block and it is described 3rd son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and the 3rd son During check code, the transmitting terminal calculates the 3rd original corresponding to piecemeal start-stop information described in the original document 3rd original sub- check code of beginning subfile block, and in the 3rd sub- check code and the 3rd original son Check code is inconsistent and when the data volume of the 3rd original subfile block is less than or equal to preset value, described Transmitting terminal retransmits the 3rd original subfile block.
Preferably, the transmission incomplete recovery device of file also includes:
Second computing module, for when the described first original subfile block received is complete, based on connecing The the described first original subfile block received and the second subfile block calculate the first of the file received Check code, wherein, the second subfile block be the file block processing after except the first subfile block it Outer blocks of files;
3rd computing module, it is inconsistent for the second check code in first check code and original document When, the second sub- check code of calculating the second subfile block;
Second sending module, for by the piecemeal start-stop information of the second subfile block and it is described second son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and second son During check code, the transmitting terminal calculates the second original corresponding to piecemeal start-stop information described in the original document Second original sub- check code of beginning subfile block, and in the described second sub- check code and the described second original son Check code is inconsistent and when the data volume of the second original subfile block is less than or equal to preset value, described Transmitting terminal retransmits the second original subfile block.
Preferably, first sending module includes:
3rd transmitting element, for by the piecemeal start-stop information of the first subfile block and it is described first son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and first son During check code, the transmitting terminal calculates the first original corresponding to piecemeal start-stop information described in the original document First original sub- check code of beginning subfile block, and in the described first sub- check code and the described first original son When check code is consistent, the transmitting terminal feeds back the complete prompt message of the first subfile block;
Second computing unit, for when receiving the complete prompt message of the first subfile block, meter The second sub- check code of the second subfile block is calculated, wherein, the second subfile block is the file block Blocks of files after processing in addition to the first subfile block;
4th transmitting element, for by the piecemeal start-stop information of the second subfile block and it is described second son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and second son During check code, the transmitting terminal calculates the second original corresponding to piecemeal start-stop information described in the original document Second original sub- check code of beginning subfile block, and in the described second sub- check code and the described second original son Check code is inconsistent and when the data volume of the second original subfile block is less than or equal to preset value, described Transmitting terminal retransmits the second original subfile block.
In addition, to achieve the above object, the present invention also provides a kind of transmission incomplete recovery device of file, The transmission incomplete recovery device of file includes:
Second piecemeal module, when the file for being sent in the transmitting terminal received is imperfect, to receiving The file carry out piecemeal processing to obtain multiple subfile blocks;
4th computing module, for calculating the sub- check code of each subfile block;
3rd sending module, for by the piecemeal start-stop information of each subfile block and the sub- verification Code is sent to the transmitting terminal, wherein, when receiving the piecemeal start-stop information and the sub- check code, The transmitting terminal calculates the original of each original subfile block corresponding to piecemeal start-stop information described in original document Begin sub- check code, and in the presence of inconsistent with the corresponding original sub- check code in the sub- check code During check code, the transmitting terminal retransmits original subfile block corresponding to the inconsistent check code.
The present invention by the file sent in the transmitting terminal that receives it is imperfect when, to the text received Part carries out piecemeal processing to obtain the first subfile block, then calculates the first son of the first subfile block Check code, then the piecemeal start-stop information of the first subfile block and the first sub- check code are sent To the transmitting terminal, wherein, when receiving the piecemeal start-stop information and the first sub- check code, The transmitting terminal calculates the first original subfile block in original document corresponding to the piecemeal start-stop information First original sub- check code, and it is inconsistent in the described first sub- check code and the described first original sub- check code When, the transmitting terminal retransmits the first original subfile block, realize the file received it is imperfect when The first subfile block is retransmitted, reduces the data volume of file retransmission, can be damaged with less cost Data are transmitted again, bandwidth and resources occupation rate that large-data documents transmit again are reduced, in maximum The equipment pressure of network environment is reduced in degree, the speed and efficiency of file retransmission is improved, ensure that text The integrality of part.Further, piecemeal processing is carried out to the file received by receiving terminal to reduce Piecemeal processing is carried out to file by transmitting terminal and calculates the flow of the check code of each subfile block, And then the load of transmitting terminal is reduced, avoid transmitting terminal and restart automatically because of overload operation or even machine of delaying Phenomenon.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the present invention transmission incomplete restoration methods first embodiment of file;
Fig. 2 is transmitted first Ziwen in the incomplete restoration methods second embodiment of file for the present invention The piecemeal start-stop information of part block and the first sub- check code are sent to the refinement flow of the transmitting terminal step Schematic diagram;
Fig. 3 is the schematic flow sheet of the present invention transmission incomplete restoration methods 3rd embodiment of file;
Fig. 4 is transmitted first Ziwen in the incomplete restoration methods fourth embodiment of file for the present invention The piecemeal start-stop information of part block and the first sub- check code are sent to the refinement flow of the transmitting terminal step Schematic diagram;
Fig. 5 is the high-level schematic functional block diagram of the present invention transmission incomplete recovery device first embodiment of file;
Fig. 6 is the first sending module in the present invention transmission incomplete recovery device second embodiment of file Refine high-level schematic functional block diagram;
Fig. 7 is the high-level schematic functional block diagram of the present invention transmission incomplete recovery device 3rd embodiment of file;
Fig. 8 is the first sending module in the present invention transmission incomplete recovery device fourth embodiment of file Refine high-level schematic functional block diagram.
The realization, functional characteristics and advantage of the object of the invention will be done further referring to the drawings in conjunction with the embodiments Explanation.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used to limit The fixed present invention.
The present invention provides a kind of transmission incomplete restoration methods of file.Reference picture 1, Fig. 1 pass for the present invention The schematic flow sheet of the defeated incomplete restoration methods first embodiment of file.
In the present embodiment, the incomplete restoration methods of transmission file include:
Step S10, when the file that the transmitting terminal received is sent is imperfect, to the file received Piecemeal processing is carried out to obtain the first subfile block;
In the present embodiment, transmitting terminal is when needing to transmit file to receiving terminal, using MD5 (Message-Digest Algorithm 5, message digest algorithm 5) or SHA1 (Secure Hash Algorithm, Secure Hash Algorithm) calculate this document check code be the second check code, then by this article Part is transmitted to receiving terminal, and is sent the second check code to receiving terminal when having sent this document.Receiving To during the second check code of original document, calculated corresponding to complete file and this document receive it is described The check code of file, i.e., the second check code of the file received is calculated using MD5 or SHA1.Then Receiving terminal by the check code of the file received compared with the second check code, in the file received When check code and inconsistent the second check code, the file received is imperfect, therefore, to the text received Part carries out piecemeal processing, obtains the first subfile block and the second subfile block, wherein, second Ziwen Part block is the blocks of files in addition to the first subfile block after the file block is handled;Specifically, can adopt Piecemeal processing, the i.e. data volume of the first subfile block and the second son are carried out to the file received with dichotomy File block data amount is identical, wherein, according to data in file when carrying out piecemeal processing to the file that receives Sequencing carry out piecemeal, for example, the first subfile block be this document first half, the second Ziwen Part block is the latter half of this document, or the first subfile block is the latter half of this document, the second son Blocks of files is the first half of this document.
Step S20, calculate the first sub- check code of the first subfile block;
Receiving terminal calculates the first sub- check code of the first subfile block, and specifically, receiving terminal can be adopted The first sub- check code of the first subfile block is calculated with MD5 or SHA1.
Step S30, the piecemeal start-stop information of the first subfile block and the first sub- check code are sent To the transmitting terminal, wherein, when receiving the piecemeal start-stop information and the first sub- check code, The transmitting terminal calculates the first original subfile block in original document corresponding to the piecemeal start-stop information First original sub- check code, and it is inconsistent in the described first sub- check code and the described first original sub- check code When, the transmitting terminal retransmits the first original subfile block.
In the present embodiment, receiving terminal sends out the piecemeal start-stop information of the first subfile block and the first sub- check code Transmitting terminal is delivered to, when receiving the piecemeal start-stop information and the first sub- check code, transmitting terminal meter Calculate the first original sub- school of the first original subfile block in original document corresponding to the piecemeal start-stop information Code is tested, i.e. transmitting terminal is calculated in original document first corresponding to the first subfile block using MD5 or SHA1 First original sub- check code of original subfile block, then transmitting terminal by the first original sub- check code in reception To the first sub- check code be compared, when the original sub- check code of the first sub- check code and first is inconsistent, Transmitting terminal retransmits the first original subfile block, i.e., sends the first original subfile block again to receiving terminal. Preferably, when the original sub- check code of the first sub- check code and first is inconsistent, if the first original subfile The data volume of block is less than or equal to preset value, then transmitting terminal retransmits the first original subfile block;If the The data volume of one original subfile block is more than preset value, then transmitting terminal sends the number of the first original subfile block The first subfile block is divided according to prompt message according to prompt message to receiving terminal, the receiving terminal for measuring excessive Block processing, to obtain the 3rd subfile block and the 4th subfile block, and dividing the 3rd subfile block Block start-stop information and the 3rd sub- check code are sent to the transmitting terminal, in order to transmitting terminal further Carry out judging whether to need to retransmit the 3rd original subfile block corresponding to the 3rd subfile block, wherein, preset Value can reasonably be set as needed, such as preset value is 30M, 15M, 8M, 5M etc..
It is emphasized that when retransmitting the first original subfile block, transmitting terminal is by the first original son Check code is sent to receiving terminal, receiving terminal when receiving the first original subfile block, using MD5 or SHA1 calculates the check code of the first original subfile block received, if the check code being calculated and first Original sub- check code, then it represents that the first original subfile block has retransmitted success, if the check code being calculated It is inconsistent with the first original sub- check code, then the prompt message that transmission re-transmission fails to transmitting terminal, transmitting terminal When receiving the prompt message, the first original subfile block is retransmitted again, until receive first The check code of original subfile block is consistent with the first original sub- check code.
In other embodiments, it is imperfect in the file of the transmitting terminal transmission received, if there is currently drop During the related information of the low file integrality, then obtained in the file corresponding to the related information 5th subfile block, and calculate the 5th sub- check code of the 5th subfile block;Then by the described 5th The start-stop information of subfile block and the 5th sub- check code are sent to the transmitting terminal, wherein, receiving During to the start-stop information and the five sub- check code, the transmitting terminal calculates institute in the original document The 5th original sub- check code of the 5th original subfile block corresponding to start-stop information is stated, and in the described 5th son When check code and inconsistent the described 5th original sub- check code, the transmitting terminal retransmits the 5th original son Blocks of files.Wherein, the data volume of the 5th subfile block can reasonably be set as needed.
In the present embodiment, by the file sent in the transmitting terminal that receives it is imperfect when, to what is received The file carries out piecemeal processing to obtain the first subfile block, then calculates the first subfile block First sub- check code, then the piecemeal start-stop information of the first subfile block and first son are verified Code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and the first son verification During code, the transmitting terminal calculates the first original Ziwen in original document corresponding to the piecemeal start-stop information First original sub- check code of part block, and in the described first sub- check code and the described first original sub- check code When inconsistent, the transmitting terminal retransmits the first original subfile block, realizes the file received not The first subfile block is retransmitted when complete, reduces the data volume of file retransmission, can be entered with less cost Transmitting again for row damage data, reduces bandwidth and resources occupation rate that large-data documents transmit again, The equipment pressure of network environment is reduced to the full extent, is improved the speed and efficiency of file retransmission, is protected The integrality of file is demonstrate,proved.Further, the file received is carried out at piecemeal by receiving terminal Reason reduces by transmitting terminal to the check code of file progress piecemeal processing and each subfile block of calculating Flow, and then the load of transmitting terminal is reduced, avoid transmitting terminal and restart automatically very because of overload operation To the phenomenon for the machine of delaying.
The second embodiment of the present invention transmission incomplete restoration methods of file is proposed based on first embodiment, Reference picture 2, in the present embodiment, step S30 include:
Step S31, the piecemeal start-stop information of the first subfile block and the first sub- check code are sent To the transmitting terminal, wherein, when receiving the piecemeal start-stop information and the first sub- check code, The transmitting terminal calculates the first original subfile block corresponding to piecemeal start-stop information described in the original document The first original sub- check code, and differ in the described first sub- check code and the described first original sub- check code Cause and when the data volume of the first original subfile block is more than preset value, the transmitting terminal feeds back described the The excessive prompt message of the data volume of one original subfile block;
In the present embodiment, receiving terminal sends out the piecemeal start-stop information of the first subfile block and the first sub- check code Transmitting terminal is delivered to, when receiving the piecemeal start-stop information and the first sub- check code, transmitting terminal meter Calculate the first original sub- school of the first original subfile block in original document corresponding to the piecemeal start-stop information Code is tested, i.e. transmitting terminal is calculated in original document first corresponding to the first subfile block using MD5 or SHA1 First original sub- check code of original subfile block, then transmitting terminal by the first original sub- check code in reception To the first sub- check code be compared, when the original sub- check code of the first sub- check code and first is inconsistent, If the data volume of the first original subfile block is more than preset value, transmitting terminal feeds back the first original Ziwen The excessive prompt message of the data volume of part block to receiving terminal, wherein, preset value can be closed as needed The setting of reason, such as preset value are 30M, 15M, 8M, 5M etc..
Step S32, when receiving the prompt message of the transmitting terminal feedback, to first Ziwen Part block carries out piecemeal processing to obtain the 3rd subfile block;
In the present embodiment, when receiving prompt message, piecemeal processing is carried out to the first subfile block to obtain The 3rd subfile block and the 4th subfile block wherein, the 4th subfile block is except the in first subfile block Blocks of files outside three subfile blocks, wherein, to the first subfile block carry out piecemeal processing mode with it is right The mode that the file received carries out piecemeal processing is identical.
Step S33, calculate the 3rd sub- check code of the 3rd subfile block;
The first subfile block is carried out piecemeal handle to obtain the 3rd subfile block and the 4th subfile block it Afterwards, receiving terminal calculates the 3rd sub- check code of the 3rd subfile block, and specifically, receiving terminal can be adopted The 3rd sub- check code of the first subfile block is calculated with MD5 or SHA1.
Step S34, the piecemeal start-stop information of the 3rd subfile block and the 3rd sub- check code are sent To the transmitting terminal, wherein, when receiving the piecemeal start-stop information and the three sub- check code, The transmitting terminal calculates the 3rd original subfile block corresponding to piecemeal start-stop information described in the original document The 3rd original sub- check code, and differ in the 3rd sub- check code with the described 3rd original sub- check code When the data volume of cause and the 3rd original subfile block is less than or equal to preset value, the transmitting terminal retransmits The 3rd original subfile block.
In the present embodiment, receiving terminal sends out the piecemeal start-stop information of the 3rd subfile block and the 3rd sub- check code Transmitting terminal is delivered to, when receiving the piecemeal start-stop information and the three sub- check code, transmitting terminal meter Calculate the 3rd original sub- school of the 3rd original subfile block in original document corresponding to the piecemeal start-stop information Code is tested, i.e. transmitting terminal is calculated in original document the 3rd corresponding to the 3rd subfile block using MD5 or SHA1 3rd original sub- check code of original subfile block, then transmitting terminal by the 3rd original sub- check code in reception To the 3rd sub- check code be compared, when the original sub- check code of the 3rd sub- check code and the 3rd is inconsistent, If the data volume of the 3rd original subfile block is less than or equal to preset value, it is former that transmitting terminal retransmits the described 3rd Beginning subfile block, i.e., the 3rd original subfile block is sent again to receiving terminal.
It is emphasized that when retransmitting the 3rd original subfile block, transmitting terminal is by the 3rd original son Check code is sent to receiving terminal, receiving terminal when receiving the 3rd original subfile block, using MD5 or SHA1 calculates the check code of the 3rd original subfile block received, if the check code being calculated and the 3rd Original sub- check code, then it represents that the 3rd original subfile block has retransmitted success, if the check code being calculated It is inconsistent with the 3rd original sub- check code, then the prompt message that transmission re-transmission fails to transmitting terminal, transmitting terminal When receiving the prompt message, the 3rd original subfile block is retransmitted again, until the receive the 3rd The check code of original subfile block is consistent with the 3rd original sub- check code.
In other embodiments, if the data volume of the 3rd original subfile block is more than preset value, transmitting terminal The excessive prompt message of data volume of the 3rd original subfile block is sent to receiving terminal, receiving terminal is according to prompting Information carries out piecemeal processing to the 3rd subfile block, and retransmits the second subfile block piecemeal according to above-mentioned flow Original document block corresponding to blocks of files afterwards, to reduce the data volume retransmitted.If the 3rd sub- check code and When three original sub- check codes are consistent, by the piecemeal start-stop information of the 4th subfile block and the 4th son Check code is sent to the transmitting terminal, and transmitting terminal retransmits the 4th Ziwen when the 4th subfile block is imperfect Part block, wherein, transmitting terminal retransmitted when the 4th subfile block is imperfect the flow of 4th sub- subfile block with Retransmit that the flow of the 3rd sub- subfile block is identical, and here is omitted.
In the present embodiment, by inconsistent in the described first sub- check code and the described first original sub- check code And the data volume of the first original subfile block is when being more than preset value, the transmitting terminal feedback described first The excessive prompt message of the data volume of original subfile block, then receiving the institute of the transmitting terminal feedback When stating prompt message, piecemeal processing is carried out to the first subfile block to obtain the 3rd subfile block, is connect The 3rd sub- check code for calculating the 3rd subfile block, finally by the piecemeal of the 3rd subfile block Start-stop information and the 3rd sub- check code are sent to the transmitting terminal, wherein, receiving the piecemeal When start-stop information and the three sub- check code, the transmitting terminal calculates piecemeal described in the original document 3rd original sub- check code of the 3rd original subfile block corresponding to start-stop information, and in the 3rd sub- school Test that code is inconsistent with the described 3rd original sub- check code and the data volume of the 3rd original subfile block is less than Or during equal to preset value, the transmitting terminal retransmits the 3rd original subfile block, and it is small to realize data volume In or equal to preset value the 3rd original subfile block re-transmission, further reduce the data of file retransmission Amount, it can carry out damaging transmitting again for data with less cost, reduce large-data documents and pass again Defeated bandwidth and resources occupation rate, the speed and efficiency of file retransmission are improved, ensure that the complete of file Property.
The 3rd embodiment of the present invention transmission incomplete restoration methods of file is proposed based on above-described embodiment, Reference picture 3, in the present embodiment, after step S30, the incomplete restoration methods of transmission file are also Including:
Step S40, when the described first original subfile block received is complete, described in receiving First original subfile block and the second subfile block calculate the first check code of the file received, its In, the second subfile block is the blocks of files in addition to the first subfile block after the file block is handled;
In the present embodiment, when retransmitting the first original subfile block, transmitting terminal is by the first original sub- school Test code to send to receiving terminal, receiving terminal is when receiving the first original subfile block, using MD5 or SHA1 The check code of the first original subfile block received is calculated, if the check code being calculated and first original Sub- check code, then it represents that the first original subfile block has retransmitted success.It is original in described first received When subfile block is complete, receiving terminal is based on the described first original subfile block and second son received Blocks of files calculates the first check code of the file received, and specifically, receiving terminal is by the in file One subfile block replaces with the original subfile block of described first received, will receive described first First check code of the original subfile block as new the first subfile block, then calculation document.
Step S50, when the second check code of first check code and original document is inconsistent, calculate institute State the second sub- check code of the second subfile block;
In the present embodiment, the second check code of the first check code and original document is inconsistent, i.e., after re-transmission The first subfile block it is complete when, whole file is still imperfect, therefore, calculates second subfile Second sub- check code of block.
Step S60, the piecemeal start-stop information of the second subfile block and the second sub- check code are sent To the transmitting terminal, wherein, when receiving the piecemeal start-stop information and the second sub- check code, The transmitting terminal calculates the second original subfile block corresponding to piecemeal start-stop information described in the original document The second original sub- check code, and differ in the described second sub- check code and the described second original sub- check code When the data volume of cause and the second original subfile block is less than or equal to preset value, the transmitting terminal retransmits The second original subfile block.
In the present embodiment, receiving terminal sends out the piecemeal start-stop information of the second subfile block and the second sub- check code Transmitting terminal is delivered to, when receiving the piecemeal start-stop information and the second sub- check code, transmitting terminal meter Calculate the second original sub- school of the second original subfile block in original document corresponding to the piecemeal start-stop information Code is tested, i.e. transmitting terminal is calculated in original document second corresponding to the second subfile block using MD5 or SHA1 Second original sub- check code of original subfile block, then transmitting terminal by the second original sub- check code in reception To the second sub- check code be compared, when the original sub- check code of the second sub- check code and second is inconsistent, If the data volume of the second original subfile block is less than or equal to preset value, it is former that transmitting terminal retransmits described second Beginning subfile block.It is emphasized that when retransmitting the second original subfile block, transmitting terminal is by Two original sub- check codes are sent to receiving terminal, and receiving terminal uses when receiving the second original subfile block MD5 or SHA1 calculates the check code of the second original subfile block received, if the verification being calculated Code and the second original sub- check code, then it represents that the second original subfile block has retransmitted success, if being calculated Check code and the second original sub- check code it is inconsistent, then send the prompt message for retransmitting failure to transmitting terminal, Transmitting terminal retransmits the second original subfile block again when receiving the prompt message, until receiving The second original subfile block check code it is consistent with the second original sub- check code.
In other embodiments, if the data volume of the second original subfile block is more than preset value, transmitting terminal The excessive prompt message of data volume of the second original subfile block is sent to receiving terminal, receiving terminal is according to prompting Information carries out piecemeal processing to the second subfile block, and retransmits the second Ziwen according to the flow of second embodiment Original document block corresponding to blocks of files after part block piecemeal, to reduce the data volume retransmitted.
In the present embodiment, when the described first original subfile block received is complete, based on what is received The first original subfile block and the second subfile block calculate the first verification of the file received Code, then when the second check code of first check code and original document is inconsistent, calculate described the Second sub- check code of two subfile blocks, then by the piecemeal start-stop information of the second subfile block and institute The second sub- check code is stated to send to the transmitting terminal, wherein, receiving the piecemeal start-stop information and institute When stating the second sub- check code, it is corresponding that the transmitting terminal calculates piecemeal start-stop information described in the original document The second original subfile block the second original sub- check code, and in the described second sub- check code and described the Two original sub- check codes are inconsistent and the data volume of the second original subfile block is less than or equal to preset value When, the transmitting terminal retransmits the second original subfile block, realizes in the first original son received Blocks of files is complete but retransmits the second subfile block when whole file is still imperfect, further ensures file Integrality.
The fourth embodiment of the present invention transmission incomplete restoration methods of file is proposed based on first embodiment, Reference picture 4, in the present embodiment, step S30 include:
Step S35, the piecemeal start-stop information of the first subfile block and the first sub- check code are sent To the transmitting terminal, wherein, when receiving the piecemeal start-stop information and the first sub- check code, The transmitting terminal calculates the first original subfile block corresponding to piecemeal start-stop information described in the original document The first original sub- check code, it is and consistent with the described first original sub- check code in the described first sub- check code When, the transmitting terminal feeds back the complete prompt message of the first subfile block;
In the present embodiment, receiving terminal sends out the piecemeal start-stop information of the first subfile block and the first sub- check code Transmitting terminal is delivered to, when receiving the piecemeal start-stop information and the first sub- check code, transmitting terminal meter Calculate the first original sub- school of the first original subfile block in original document corresponding to the piecemeal start-stop information Code is tested, then the first original sub- check code is compared by transmitting terminal in the first sub- check code received, When the first sub- check code is consistent with the first original sub- check code, transmitting terminal feeds back the first subfile block Complete prompt message, to prompt the imperfect unrelated with the first subfile block of receiving terminal current file.
Step S36, when receiving the complete prompt message of the first subfile block, calculate the second Ziwen Second sub- check code of part block, wherein, the second subfile block is except the after file block processing Blocks of files outside one subfile block;
Step S37, the piecemeal start-stop information of the second subfile block and the second sub- check code are sent To the transmitting terminal, wherein, when receiving the piecemeal start-stop information and the second sub- check code, The transmitting terminal calculates the second original subfile block corresponding to piecemeal start-stop information described in the original document The second original sub- check code, and differ in the described second sub- check code and the described second original sub- check code When the data volume of cause and the second original subfile block is less than or equal to preset value, the transmitting terminal retransmits The second original subfile block.
In the present embodiment, receiving terminal sends out the piecemeal start-stop information of the second subfile block and the second sub- check code Transmitting terminal is delivered to, when receiving the piecemeal start-stop information and the second sub- check code, transmitting terminal meter Calculate the second original sub- school of the second original subfile block in original document corresponding to the piecemeal start-stop information Code is tested, i.e. transmitting terminal is calculated in original document second corresponding to the second subfile block using MD5 or SHA1 Second original sub- check code of original subfile block, then transmitting terminal by the second original sub- check code in reception To the second sub- check code be compared, when the original sub- check code of the second sub- check code and second is inconsistent, If the data volume of the second original subfile block is less than or equal to preset value, it is former that transmitting terminal retransmits described second Beginning subfile block.It is emphasized that when retransmitting the second original subfile block, transmitting terminal is by Two original sub- check codes are sent to receiving terminal, and receiving terminal uses when receiving the second original subfile block MD5 or SHA1 calculates the check code of the second original subfile block received, if the verification being calculated Code and the second original sub- check code, then it represents that the second original subfile block has retransmitted success, if being calculated Check code and the second original sub- check code it is inconsistent, then send the prompt message for retransmitting failure to transmitting terminal, Transmitting terminal retransmits the second original subfile block again when receiving the prompt message, until receiving The second original subfile block check code it is consistent with the second original sub- check code.
In other embodiments, if the data volume of the second original subfile block is more than preset value, transmitting terminal The excessive prompt message of data volume of the second original subfile block is sent to receiving terminal, receiving terminal is according to prompting Information carries out piecemeal processing to the second subfile block, and retransmits the second Ziwen according to the flow of second embodiment Original document block corresponding to blocks of files after part block piecemeal, to reduce the data volume retransmitted.
In the present embodiment, by when the described first sub- check code is consistent with the described first original sub- check code, The transmitting terminal feeds back the complete prompt message of the first subfile block, is then receiving described first During the complete prompt message of subfile block, the second sub- check code of the second subfile block is calculated, then by institute The piecemeal start-stop information and the second sub- check code for stating the second subfile block are sent to the transmitting terminal, its In, when receiving the piecemeal start-stop information and the second sub- check code, the transmitting terminal calculates institute State the second original sub- verification of the second original subfile block corresponding to the information of piecemeal start-stop described in original document Code, and it is inconsistent with the described second original sub- check code in the described second sub- check code and described second original When the data volume of subfile block is less than or equal to preset value, the transmitting terminal retransmits the second original Ziwen Part block, realize and the second subfile block is retransmitted when the first subfile block is complete, further ensure file Integrality.
The present invention further provides one kind to transmit the incomplete restoration methods of file.
In the present embodiment, the incomplete restoration methods of transmission file include:
Step S110, when the file that the transmitting terminal received is sent is imperfect, to the text received Part carries out piecemeal processing to obtain multiple subfile blocks;
In the present embodiment, transmitting terminal is when needing to transmit file to receiving terminal, using MD5 (Message-Digest Algorithm 5, message digest algorithm 5) or SHA1 (Secure Hash Algorithm, Secure Hash Algorithm) calculate this document check code be the second check code, then by this article Part is transmitted to receiving terminal, and is sent the second check code to receiving terminal when having sent this document.Receiving To during the second check code of original document, calculated corresponding to complete file and this document receive it is described The check code of file, i.e., the second check code of the file received is calculated using MD5 or SHA1.Then Receiving terminal by the check code of the file received compared with the second check code, in the file received When check code and inconsistent the second check code, the file received is imperfect, therefore to described in receiving File carries out piecemeal processing to obtain multiple subfile blocks.Preferably, the data volume of each subfile block is small In or equal to preset value.
Step S120, calculate the sub- check code of each subfile block;
Receiving terminal calculates the sub- check code of each subfile block, and specifically, receiving terminal can use MD5 Or SHA1 calculates the sub- check code of each subfile block.
Step S130, by the piecemeal start-stop information of each subfile block and the sub- check code send to The transmitting terminal, wherein, when receiving the piecemeal start-stop information and the sub- check code, the hair Sending end calculates the original sub- school of each original subfile block corresponding to piecemeal start-stop information described in original document Code is tested, and the check code inconsistent with the corresponding original sub- check code in the sub- check code be present When, the transmitting terminal retransmits original subfile block corresponding to the inconsistent check code.
In the present embodiment, receiving terminal is by the piecemeal start-stop information of each subfile block and the sub- verification Code is sent to the transmitting terminal, when receiving the piecemeal start-stop information and the sub- check code, is sent End calculates each original Ziwen corresponding to piecemeal start-stop information described in original document using MD5 or SHA1 The original sub- check code of part block, the school inconsistent with corresponding original sub- check code in sub- check code be present When testing yard, subfile block is imperfect corresponding to the check code, and therefore, it is corresponding that transmitting terminal retransmits the check code Original subfile block.
In the present embodiment, by the file sent in the transmitting terminal that receives it is imperfect when, to what is received The file carries out piecemeal processing to obtain multiple subfile blocks, then calculates each subfile block Sub- check code, then by the piecemeal start-stop information of each subfile block and the sub- check code send to The transmitting terminal, wherein, when receiving the piecemeal start-stop information and the sub- check code, the hair Sending end calculates the original sub- school of each original subfile block corresponding to piecemeal start-stop information described in original document Code is tested, and the check code inconsistent with the corresponding original sub- check code in the sub- check code be present When, transmitting terminal retransmits original subfile block corresponding to the inconsistent check code;Realize in receiving terminal Piecemeal processing is carried out to the file received, and the inconsistent check code is retransmitted by transmitting terminal and corresponded to Original subfile block, reduce and carry out piecemeal processing to file by transmitting terminal and calculate each Ziwen The flow of the check code of part block, avoids that transmitting terminal is restarted automatically because of overload operation or even machine of delaying shows As again the integrality of file can be ensured by reducing the load of transmitting terminal.
The present invention further provides one kind to transmit the incomplete recovery device of file.
Reference picture 5, Fig. 5 are the function mould of the present invention transmission incomplete recovery device first embodiment of file Block schematic diagram.
In the present embodiment, the incomplete recovery device of transmission file includes:
First piecemeal module 10, when the file for being sent in the transmitting terminal received is imperfect, to receiving To the file carry out piecemeal processing to obtain the first subfile block;
In the present embodiment, transmitting terminal is counted when needing to transmit file to receiving terminal using MD5 or SHA1 The check code for calculating this document is the second check code, then transmits this file to receiving terminal, and sending The second check code is sent to receiving terminal during this document.Receiving corresponding to complete file and this document During the second check code of original document, the first piecemeal module 10 calculates the check code of the file received. Then by the check code of the file received compared with the second check code, in the school of the file received When testing code and inconsistent the second check code, the file received is imperfect, therefore, the first piecemeal module 10 Piecemeal processing is carried out to the file received, obtains the first subfile block and the second subfile block, wherein, The second subfile block is the blocks of files in addition to the first subfile block after the file block is handled;Tool Body, dichotomy can be used to carry out the number of piecemeal processing, i.e. the first subfile block to the file received According to measure it is identical with the second subfile block data volume, wherein, to receive file progress piecemeal processing when by Piecemeal is carried out according to the sequencing of data in file, for example, the first subfile block is the first half of this document Divide, the latter half that the second subfile block is this document, or the first subfile block is the later half of this document Partly, the second subfile block is the first half of this document.
First computing module 20, for calculating the first sub- check code of the first subfile block;
First sending module 30, for by the piecemeal start-stop information of the first subfile block and described first Sub- check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and described first During sub- check code, the transmitting terminal calculates the first original in original document corresponding to the piecemeal start-stop information First original sub- check code of beginning subfile block, and in the described first sub- check code and the described first original son When check code is inconsistent, the transmitting terminal retransmits the first original subfile block.
In the present embodiment, the first sending module 30 is sub by the piecemeal start-stop information of the first subfile block and first Check code is sent to transmitting terminal, when receiving the piecemeal start-stop information and the first sub- check code, Transmitting terminal calculates first of the first original subfile block in original document corresponding to the piecemeal start-stop information Original sub- check code, i.e. transmitting terminal calculate the first subfile block pair in original document using MD5 or SHA1 First original sub- check code of the first original subfile block answered, then transmitting terminal is by the first original sub- verification Code is compared in the first sub- check code received, in the first sub- check code and the first original sub- check code When inconsistent, transmitting terminal retransmits the first original subfile block, i.e., sends the first original subfile again Block is to receiving terminal.Preferably, when the original sub- check code of the first sub- check code and first is inconsistent, if The data volume of one original subfile block is less than or equal to preset value, then transmitting terminal retransmits the first original son Blocks of files;If the data volume of the first original subfile block is more than preset value, it is original that transmitting terminal sends first The prompt message that the data volume of subfile block is excessive is sub to first according to prompt message to receiving terminal, receiving terminal Blocks of files carries out piecemeal processing, to obtain the 3rd subfile block and the 4th subfile block, and by the described 3rd The piecemeal start-stop information of subfile block and the 3rd sub- check code are sent to the transmitting terminal, in order to send out Sending end further carries out judging whether to need to retransmit the 3rd original subfile corresponding to the 3rd subfile block Block, wherein, preset value can reasonably be set as needed, for example, preset value be 30M, 15M, 8M, 5M etc..
In the present embodiment, by the file sent in the transmitting terminal that receives it is imperfect when, the first piecemeal mould Block 10 carries out piecemeal to the file received and handled to obtain the first subfile block, then first calculates Module 20 calculates the first sub- check code of the first subfile block, and then the first sending module 30 is by institute The piecemeal start-stop information and the first sub- check code for stating the first subfile block are sent to the transmitting terminal, its In, when receiving the piecemeal start-stop information and the first sub- check code, the transmitting terminal calculates institute State the first original sub- verification of the first original subfile block in original document corresponding to piecemeal start-stop information Code, and in the described first sub- check code and inconsistent the described first original sub- check code, the transmitting terminal Retransmit the described first original subfile block, realize the file received it is imperfect when retransmit the first subfile Block, reduce the data volume of file retransmission, can carry out damaging transmitting again for data with less cost, Bandwidth and resources occupation rate that large-data documents transmit again are reduced, reduces network to the full extent The equipment pressure of environment, the speed and efficiency of file retransmission are improved, ensure that the integrality of file.Enter One step, carrying out piecemeal processing to the file received by receiving terminal reduces by transmitting terminal pair File carries out piecemeal processing and calculates the flow of the check code of each subfile block, and then reduces transmission The load at end, avoid transmitting terminal and restart automatically because of overload operation or even the phenomenon for machine of delaying.
The second embodiment of the present invention transmission incomplete recovery device of file is proposed based on first embodiment, Reference picture 6, in the present embodiment, the first sending module 30 include:
First transmitting element 31, for by the piecemeal start-stop information of the first subfile block and described first Sub- check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and described first During sub- check code, the transmitting terminal is calculated described in the original document first corresponding to piecemeal start-stop information First original sub- check code of original subfile block, and it is original in the described first sub- check code and described first Sub- check code is inconsistent and when the data volume of the first original subfile block is more than preset value, the transmission Hold the excessive prompt message of the data volume for feeding back the first original subfile block;
Blocking unit 32, for when receiving the prompt message of transmitting terminal feedback, to described First subfile block carries out piecemeal processing to obtain the 3rd subfile block;
First computing unit 33, for calculating the 3rd sub- check code of the 3rd subfile block;
Second transmitting element 34, for by the piecemeal start-stop information and the described 3rd of the 3rd subfile block Sub- check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and the described 3rd During sub- check code, the transmitting terminal is calculated described in the original document the 3rd corresponding to piecemeal start-stop information 3rd original sub- check code of original subfile block, and it is original in the 3rd sub- check code and the described 3rd Sub- check code is inconsistent and when the data volume of the 3rd original subfile block is less than or equal to preset value, institute State transmitting terminal and retransmit the 3rd original subfile block.
In the present embodiment, by inconsistent in the described first sub- check code and the described first original sub- check code And the data volume of the first original subfile block is when being more than preset value, the transmitting terminal feedback described first The excessive prompt message of the data volume of original subfile block, then receiving the institute of the transmitting terminal feedback When stating prompt message, blocking unit 32 carries out piecemeal processing to the first subfile block to obtain the 3rd son Blocks of files, then the first computing unit 33 calculate the 3rd sub- check code of the 3rd subfile block, finally Second transmitting element 34 sends out the piecemeal start-stop information of the 3rd subfile block and the 3rd sub- check code The transmitting terminal is delivered to, wherein, when receiving the piecemeal start-stop information and the three sub- check code, The transmitting terminal calculates the 3rd original subfile block corresponding to piecemeal start-stop information described in the original document The 3rd original sub- check code, and differ in the 3rd sub- check code with the described 3rd original sub- check code When the data volume of cause and the 3rd original subfile block is less than or equal to preset value, the transmitting terminal retransmits The 3rd original subfile block, realize the 3rd original subfile that data volume is less than or equal to preset value The re-transmission of block, the data volume of file retransmission is further reduced, damage number can be carried out with less cost According to transmit again, reduce bandwidth and resources occupation rate that large-data documents transmit again, improve text The speed and efficiency that part retransmits, ensure that the integrality of file.
The 3rd embodiment of the present invention transmission incomplete recovery device of file is proposed based on first embodiment, Reference picture 7, in the present embodiment, the transmission incomplete recovery device of file also include:
Second computing module 40, for when the described first original subfile block received is complete, being based on The the described first original subfile block received and the second subfile block calculate the of the file that receives One check code, wherein, the second subfile block is to remove the first subfile block after the file block is handled Outside blocks of files;
In the present embodiment, when retransmitting the first original subfile block, transmitting terminal is by the first original sub- school Test code to send to receiving terminal, when receiving the first original subfile block, the second computing module 40 uses MD5 or SHA1 calculates the check code of the first original subfile block received, if the verification being calculated Code and the first original sub- check code, then it represents that the first original subfile block has retransmitted success.What is received When the first original subfile block is complete, receiving terminal is based on the described first original subfile block received And the second subfile block calculates the first check code of the file received, specifically, receiving terminal The first subfile block in file is replaced with to the described first original subfile block received, will be received First school of the described first original subfile block arrived as new the first subfile block, then calculation document Test code.
3rd computing module 50, for differing in the second check code of first check code and original document During cause, the second sub- check code of the second subfile block is calculated;
Second sending module 60, for by the piecemeal start-stop information of the second subfile block and described second Sub- check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and described second During sub- check code, the transmitting terminal is calculated described in the original document second corresponding to piecemeal start-stop information Second original sub- check code of original subfile block, and it is original in the described second sub- check code and described second Sub- check code is inconsistent and when the data volume of the second original subfile block is less than or equal to preset value, institute State transmitting terminal and retransmit the second original subfile block.
In the present embodiment, the second sending module 60 is sub by the piecemeal start-stop information of the second subfile block and second Check code is sent to transmitting terminal, when receiving the piecemeal start-stop information and the second sub- check code, Transmitting terminal calculates second of the second original subfile block in original document corresponding to the piecemeal start-stop information Original sub- check code, i.e. transmitting terminal calculate the second subfile block pair in original document using MD5 or SHA1 Second original sub- check code of the second original subfile block answered, then transmitting terminal is by the second original sub- verification Code is compared in the second sub- check code received, in the second sub- check code and the second original sub- check code When inconsistent, if the data volume of the second original subfile block is less than or equal to preset value, transmitting terminal retransmits The second original subfile block.It is emphasized that when retransmitting the second original subfile block, Second original sub- check code is sent to receiving terminal, receiving terminal and is receiving the second original subfile by transmitting terminal During block, the check code of the second original subfile block received is calculated using MD5 or SHA1, if calculating The obtained original sub- check code of check code and second, then it represents that the second original subfile block has retransmitted success, If the check code being calculated and the second original sub- check code are inconsistent, the prompting letter for retransmitting failure is sent For breath to transmitting terminal, transmitting terminal retransmits the second original subfile block again when receiving the prompt message, Until the check code of the second original subfile block received is consistent with the second original sub- check code.
In the present embodiment, when the described first original subfile block received is complete, the second computing module 40 calculate the text received based on the described first original subfile block received and the second subfile block First check code of part, then when the second check code of first check code and original document is inconsistent, 3rd computing module 50 calculates the second sub- check code of the second subfile block, then the second sending module 60 send the piecemeal start-stop information of the second subfile block and the second sub- check code to the transmission End, wherein, when receiving the piecemeal start-stop information and the second sub- check code, the transmitting terminal Calculate the second original subfile block corresponding to piecemeal start-stop information described in the original document second is original Sub- check code, and it is inconsistent in the described second sub- check code and the described second original sub- check code and described the When the data volume of two original subfile blocks is less than or equal to preset value, it is former that the transmitting terminal retransmits described second Beginning subfile block, it is still endless to realize complete in the first original subfile block for receiving but whole file The second subfile block is retransmitted when whole, further ensures the integrality of file.
The fourth embodiment of the present invention transmission incomplete recovery device of file is proposed based on first embodiment, Reference picture 8, in the present embodiment, the first sending module 30 include:
3rd transmitting element 35, for by the piecemeal start-stop information of the first subfile block and described first Sub- check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and described first During sub- check code, the transmitting terminal is calculated described in the original document first corresponding to piecemeal start-stop information First original sub- check code of original subfile block, and it is original in the described first sub- check code and described first When sub- check code is consistent, the transmitting terminal feeds back the complete prompt message of the first subfile block;
Second computing unit 36, for when receiving the complete prompt message of the first subfile block, The second sub- check code of the second subfile block is calculated, wherein, the second subfile block is the file point Blocks of files after block processing in addition to the first subfile block;
4th transmitting element 37, for by the piecemeal start-stop information of the second subfile block and described second Sub- check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and described second During sub- check code, the transmitting terminal is calculated described in the original document second corresponding to piecemeal start-stop information Second original sub- check code of original subfile block, and it is original in the described second sub- check code and described second Sub- check code is inconsistent and when the data volume of the second original subfile block is less than or equal to preset value, institute State transmitting terminal and retransmit the second original subfile block.
In the present embodiment, the 4th transmitting element 37 is sub by the piecemeal start-stop information of the second subfile block and second Check code is sent to transmitting terminal, when receiving the piecemeal start-stop information and the second sub- check code, Transmitting terminal calculates second of the second original subfile block in original document corresponding to the piecemeal start-stop information Original sub- check code, i.e. transmitting terminal calculate the second subfile block pair in original document using MD5 or SHA1 Second original sub- check code of the second original subfile block answered, then transmitting terminal is by the second original sub- verification Code is compared in the second sub- check code received, in the second sub- check code and the second original sub- check code When inconsistent, if the data volume of the second original subfile block is less than or equal to preset value, transmitting terminal retransmits The second original subfile block.It is emphasized that when retransmitting the second original subfile block, Second original sub- check code is sent to receiving terminal, receiving terminal and is receiving the second original subfile by transmitting terminal During block, the check code of the second original subfile block received is calculated using MD5 or SHA1, if calculating The obtained original sub- check code of check code and second, then it represents that the second original subfile block has retransmitted success, If the check code being calculated and the second original sub- check code are inconsistent, the prompting letter for retransmitting failure is sent For breath to transmitting terminal, transmitting terminal retransmits the second original subfile block again when receiving the prompt message, Until the check code of the second original subfile block received is consistent with the second original sub- check code.
In the present embodiment, by when the described first sub- check code is consistent with the described first original sub- check code, The transmitting terminal feeds back the complete prompt message of the first subfile block, is then receiving described first During the complete prompt message of subfile block, the second computing unit 36 calculates the second sub- school of the second subfile block Code is tested, then the 4th transmitting element 37 is by the piecemeal start-stop information of the second subfile block and described second Sub- check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and described second During sub- check code, the transmitting terminal is calculated described in the original document second corresponding to piecemeal start-stop information Second original sub- check code of original subfile block, and it is original in the described second sub- check code and described second Sub- check code is inconsistent and when the data volume of the second original subfile block is less than or equal to preset value, institute State transmitting terminal and retransmit the second original subfile block, realize and the is retransmitted when the first subfile block is complete Two subfile blocks, further ensure the integrality of file.
The present invention further provides one kind to transmit the incomplete recovery device of file.
In the present embodiment, the incomplete recovery device of transmission file includes:
Second piecemeal module, when the file for being sent in the transmitting terminal received is imperfect, to receiving The file carry out piecemeal processing to obtain multiple subfile blocks;
In the present embodiment, transmitting terminal is when needing to transmit file to receiving terminal, using MD5 (Message-Digest Algorithm 5, message digest algorithm 5) or SHA1 (Secure Hash Algorithm, Secure Hash Algorithm) calculate this document check code be the second check code, then by this article Part is transmitted to receiving terminal, and is sent the second check code to receiving terminal when having sent this document.Receiving To during the second check code of original document, calculated corresponding to complete file and this document receive it is described The check code of file, i.e., the second check code of the file received is calculated using MD5 or SHA1.Then Receiving terminal by the check code of the file received compared with the second check code, in the file received When check code and inconsistent the second check code, the file received is imperfect, therefore the second piecemeal module pair The file received carries out piecemeal processing to obtain multiple subfile blocks.Preferably, each subfile The data volume of block is less than or equal to preset value.
4th computing module, for calculating the sub- check code of each subfile block;
3rd sending module, for by the piecemeal start-stop information of each subfile block and the sub- verification Code is sent to the transmitting terminal, wherein, when receiving the piecemeal start-stop information and the sub- check code, The transmitting terminal calculates the original of each original subfile block corresponding to piecemeal start-stop information described in original document Begin sub- check code, and in the presence of inconsistent with the corresponding original sub- check code in the sub- check code During check code, the transmitting terminal retransmits original subfile block corresponding to the inconsistent check code.
In the present embodiment, the 3rd sending module is by the piecemeal start-stop information of each subfile block and described Sub- check code is sent to the transmitting terminal, when receiving the piecemeal start-stop information and the sub- check code, Transmitting terminal is using each original corresponding to piecemeal start-stop information described in MD5 or SHA1 calculating original documents The original sub- check code of subfile block, exist in sub- check code inconsistent with corresponding original sub- check code Check code when, subfile block is imperfect corresponding to the check code, and therefore, transmitting terminal retransmits the check code Corresponding original subfile block.
In the present embodiment, by the file sent in the transmitting terminal that receives it is imperfect when, the second piecemeal mould Block carries out piecemeal to the file received and handled to obtain multiple subfile blocks, then the 4th calculates mould Block calculates the sub- check code of each subfile block, and then the 3rd sending module is by each subfile The piecemeal start-stop information of block and the sub- check code are sent to the transmitting terminal, wherein, it is described receiving When piecemeal start-stop information and the sub- check code, the transmitting terminal calculates piecemeal start-stop described in original document The original sub- check code of each original subfile block corresponding to information, and in the sub- check code exist with During the inconsistent check code of the corresponding original sub- check code, transmitting terminal retransmits the inconsistent verification Original subfile block corresponding to code;Realize and piecemeal processing is carried out to the file received in receiving terminal, and Original subfile block corresponding to the inconsistent check code is retransmitted by transmitting terminal, reduces and passes through transmission The flow that piecemeal processing is carried out to file and calculates the check code of each subfile block is held, avoids transmission End is restarted or even the phenomenon for machine of delaying automatically because of overload operation, that is, reducing the load of transmitting terminal again can be with Ensure the integrality of file.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every The equivalent structure or equivalent flow conversion made using description of the invention and accompanying drawing content, or directly or Connect and be used in other related technical areas, be included within the scope of the present invention.

Claims (10)

1. one kind transmission incomplete restoration methods of file, it is characterised in that the transmission file is imperfect Restoration methods comprise the following steps:
When the file that the transmitting terminal received is sent is imperfect, piecemeal is carried out to the file received Handle to obtain the first subfile block;
Calculate the first sub- check code of the first subfile block;
The piecemeal start-stop information of the first subfile block and the first sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the first sub- check code, the transmission It is first original to calculate the first original subfile block in original document corresponding to the piecemeal start-stop information for end Sub- check code, and in the described first sub- check code and inconsistent the described first original sub- check code, it is described Transmitting terminal retransmits the first original subfile block.
2. the transmission incomplete restoration methods of file as claimed in claim 1, it is characterised in that described The piecemeal start-stop information of the first subfile block and the first sub- check code are sent to the transmitting terminal The step of include:
The piecemeal start-stop information of the first subfile block and the first sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the first sub- check code, the transmission End calculates the first original of the first original subfile block corresponding to piecemeal start-stop information described in the original document Begin sub- check code, and inconsistent and described in the described first sub- check code and the described first original sub- check code When the data volume of first original subfile block is more than preset value, the transmitting terminal feeds back the first original son The excessive prompt message of the data volume of blocks of files;
When receiving the prompt message of the transmitting terminal feedback, the first subfile block is carried out Piecemeal is handled to obtain the 3rd subfile block;
Calculate the 3rd sub- check code of the 3rd subfile block;
The piecemeal start-stop information of the 3rd subfile block and the 3rd sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the three sub- check code, the transmission End calculates the 3rd original of the 3rd original subfile block corresponding to piecemeal start-stop information described in the original document Begin sub- check code, and inconsistent and described in the 3rd sub- check code and the described 3rd original sub- check code When the data volume of 3rd original subfile block is less than or equal to preset value, the transmitting terminal retransmits the described 3rd Original subfile block.
3. the transmission incomplete restoration methods of file as claimed in claim 1 or 2, it is characterised in that It is described to send the piecemeal start-stop information of the first subfile block and the first sub- check code to the hair After the step of sending end, the transmission incomplete restoration methods of file also include:
It is original based on described first received when the described first original subfile block received is complete Subfile block and the second subfile block calculate the first check code of the file received, wherein, it is described Second subfile block is the blocks of files in addition to the first subfile block after the file block is handled;
When the second check code of first check code and original document is inconsistent, second son is calculated Second sub- check code of blocks of files;
The piecemeal start-stop information of the second subfile block and the second sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the second sub- check code, the transmission End calculates the second original of the second original subfile block corresponding to piecemeal start-stop information described in the original document Begin sub- check code, and inconsistent and described in the described second sub- check code and the described second original sub- check code When the data volume of second original subfile block is less than or equal to preset value, the transmitting terminal retransmits described second Original subfile block.
4. the transmission incomplete restoration methods of file as claimed in claim 1, it is characterised in that described The piecemeal start-stop information of the first subfile block and the first sub- check code are sent to the transmitting terminal The step of include:
The piecemeal start-stop information of the first subfile block and the first sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the first sub- check code, the transmission End calculates the first original of the first original subfile block corresponding to piecemeal start-stop information described in the original document Begin sub- check code, and when the described first sub- check code is consistent with the described first original sub- check code, it is described Transmitting terminal feeds back the complete prompt message of the first subfile block;
When receiving the complete prompt message of the first subfile block, the of the second subfile block is calculated Two sub- check codes, wherein, the second subfile block is to remove the first subfile after the file block is handled Blocks of files outside block;
The piecemeal start-stop information of the second subfile block and the second sub- check code are sent to the hair Sending end, wherein, when receiving the piecemeal start-stop information and the second sub- check code, the transmission End calculates the second original of the second original subfile block corresponding to piecemeal start-stop information described in the original document Begin sub- check code, and inconsistent and described in the described second sub- check code and the described second original sub- check code When the data volume of second original subfile block is less than or equal to preset value, the transmitting terminal retransmits described second Original subfile block.
5. one kind transmission incomplete restoration methods of file, it is characterised in that the transmission file is imperfect Restoration methods comprise the following steps:
When the file that the transmitting terminal received is sent is imperfect, piecemeal is carried out to the file received Handle to obtain multiple subfile blocks;
Calculate the sub- check code of each subfile block;
The piecemeal start-stop information of each subfile block and the sub- check code are sent to the transmission End, wherein, when receiving the piecemeal start-stop information and the sub- check code, the transmitting terminal calculates The original sub- check code of each original subfile block corresponding to the information of piecemeal start-stop described in original document, and It is described when the check code inconsistent with the corresponding original sub- check code in the sub- check code be present Transmitting terminal retransmits original subfile block corresponding to the inconsistent check code.
6. one kind transmission incomplete recovery device of file, it is characterised in that the transmission file is imperfect Recovery device include:
First piecemeal module, when the file for being sent in the transmitting terminal received is imperfect, to receiving The file carry out piecemeal processing to obtain the first subfile block;
First computing module, for calculating the first sub- check code of the first subfile block;
First sending module, for by the piecemeal start-stop information of the first subfile block and it is described first son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and first son During check code, first in original document corresponding to the transmitting terminal calculating piecemeal start-stop information is original First original sub- check code of subfile block, and in the described first sub- check code and the described first original sub- school Test code it is inconsistent when, the transmitting terminal retransmits the first original subfile block.
7. the transmission incomplete recovery device of file as claimed in claim 6, it is characterised in that described First sending module includes:
First transmitting element, for by the piecemeal start-stop information of the first subfile block and it is described first son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and first son During check code, the transmitting terminal calculates the first original corresponding to piecemeal start-stop information described in the original document First original sub- check code of beginning subfile block, and in the described first sub- check code and the described first original son Check code is inconsistent and when the data volume of the first original subfile block is more than preset value, the transmitting terminal Feed back the excessive prompt message of the data volume of the described first original subfile block;
Blocking unit, for when receiving the prompt message of transmitting terminal feedback, to described the One subfile block carries out piecemeal processing to obtain the 3rd subfile block;
First computing unit, for calculating the 3rd sub- check code of the 3rd subfile block;
Second transmitting element, for by the piecemeal start-stop information of the 3rd subfile block and it is described 3rd son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and the 3rd son During check code, the transmitting terminal calculates the 3rd original corresponding to piecemeal start-stop information described in the original document 3rd original sub- check code of beginning subfile block, and in the 3rd sub- check code and the 3rd original son Check code is inconsistent and when the data volume of the 3rd original subfile block is less than or equal to preset value, described Transmitting terminal retransmits the 3rd original subfile block.
8. the incomplete recovery device of transmission file as claimed in claims 6 or 7, it is characterised in that The transmission incomplete recovery device of file also includes:
Second computing module, for when the described first original subfile block received is complete, based on connecing The file that the described first original subfile block received and the second subfile block calculating receive First check code;
3rd computing module, it is inconsistent for the second check code in first check code and original document When, the second sub- check code of the second subfile block of calculating, wherein, the second subfile block is the text Blocks of files after the processing of part piecemeal in addition to the first subfile block;
Second sending module, for by the piecemeal start-stop information of the second subfile block and it is described second son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and second son During check code, the transmitting terminal calculates the second original corresponding to piecemeal start-stop information described in the original document Second original sub- check code of beginning subfile block, and in the described second sub- check code and the described second original son Check code is inconsistent and when the data volume of the second original subfile block is less than or equal to preset value, described Transmitting terminal retransmits the second original subfile block.
9. the transmission incomplete recovery device of file as claimed in claim 6, it is characterised in that described First sending module includes:
3rd transmitting element, for by the piecemeal start-stop information of the first subfile block and it is described first son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and first son During check code, the transmitting terminal calculates the first original corresponding to piecemeal start-stop information described in the original document First original sub- check code of beginning subfile block, and in the described first sub- check code and the described first original son When check code is consistent, the transmitting terminal feeds back the complete prompt message of the first subfile block;
Second computing unit, for when receiving the complete prompt message of the first subfile block, meter The second sub- check code of the second subfile block is calculated, wherein, the second subfile block is the file block Blocks of files after processing in addition to the first subfile block;
4th transmitting element, for by the piecemeal start-stop information of the second subfile block and it is described second son Check code is sent to the transmitting terminal, wherein, receiving the piecemeal start-stop information and second son During check code, the transmitting terminal calculates the second original corresponding to piecemeal start-stop information described in the original document Second original sub- check code of beginning subfile block, and in the described second sub- check code and the described second original son Check code is inconsistent and when the data volume of the second original subfile block is less than or equal to preset value, described Transmitting terminal retransmits the second original subfile block.
10. one kind transmission incomplete recovery device of file, it is characterised in that the transmission file is endless Whole recovery device includes:
Second piecemeal module, when the file for being sent in the transmitting terminal received is imperfect, to receiving The file carry out piecemeal processing to obtain multiple subfile blocks;
4th computing module, for calculating the sub- check code of each subfile block;
3rd sending module, for by the piecemeal start-stop information of each subfile block and the sub- verification Code is sent to the transmitting terminal, wherein, when receiving the piecemeal start-stop information and the sub- check code, The transmitting terminal calculates the original of each original subfile block corresponding to piecemeal start-stop information described in original document Begin sub- check code, and in the presence of inconsistent with the corresponding original sub- check code in the sub- check code During check code, the transmitting terminal retransmits original subfile block corresponding to the inconsistent check code.
CN201610581670.6A 2016-07-20 2016-07-20 Recovery method and device for incomplete transmitted file Active CN107645357B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610581670.6A CN107645357B (en) 2016-07-20 2016-07-20 Recovery method and device for incomplete transmitted file
PCT/CN2017/076158 WO2018014564A1 (en) 2016-07-20 2017-03-09 Method and device for recovering incomplete transmission file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610581670.6A CN107645357B (en) 2016-07-20 2016-07-20 Recovery method and device for incomplete transmitted file

Publications (2)

Publication Number Publication Date
CN107645357A true CN107645357A (en) 2018-01-30
CN107645357B CN107645357B (en) 2020-09-22

Family

ID=60992936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610581670.6A Active CN107645357B (en) 2016-07-20 2016-07-20 Recovery method and device for incomplete transmitted file

Country Status (2)

Country Link
CN (1) CN107645357B (en)
WO (1) WO2018014564A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413200A (en) * 2018-11-26 2019-03-01 Oppo(重庆)智能科技有限公司 A kind of method, client, MES and electronic equipment that resource imports

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117216011A (en) * 2023-08-30 2023-12-12 建银工程咨询有限责任公司 File transmission method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010017973A1 (en) * 2000-02-29 2001-08-30 Hiroyuki Abe Signal processing system
CN101383720A (en) * 2007-09-05 2009-03-11 大唐移动通信设备有限公司 Software updating method of controlled network element, controlled network element and operation maintaining center
CN101453479A (en) * 2007-11-28 2009-06-10 新奥特(北京)视频技术有限公司 Fast document transmission system
CN103095795A (en) * 2011-10-28 2013-05-08 三星Sds株式会社 Apparatus and method for transmitting data
CN101453478B (en) * 2007-11-28 2013-07-03 新奥特(北京)视频技术有限公司 Integrity checking method in document transmission
CN104580158A (en) * 2014-12-12 2015-04-29 集时通(福建)信息科技有限公司 Distributed platform file and content distribution method and distributed platform file and content distribution system
CN105045626A (en) * 2015-07-21 2015-11-11 珠海格力电器股份有限公司 Program burning method, burning device and controller

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043296A (en) * 2007-04-28 2007-09-26 华为技术有限公司 Method for requesting retransmission data, data retransmitting method and data transmission system
EP2484040B1 (en) * 2009-10-02 2018-03-07 Telefonaktiebolaget LM Ericsson (publ) Method for retransmission using checksums for identifying lost data packets
CN105446829A (en) * 2015-09-29 2016-03-30 网易(杭州)网络有限公司 Client program repair method, device and system and server
CN105160253B (en) * 2015-09-29 2018-11-09 网易(杭州)网络有限公司 Repair method, apparatus, system and the server of client-side program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010017973A1 (en) * 2000-02-29 2001-08-30 Hiroyuki Abe Signal processing system
CN101383720A (en) * 2007-09-05 2009-03-11 大唐移动通信设备有限公司 Software updating method of controlled network element, controlled network element and operation maintaining center
CN101453479A (en) * 2007-11-28 2009-06-10 新奥特(北京)视频技术有限公司 Fast document transmission system
CN101453478B (en) * 2007-11-28 2013-07-03 新奥特(北京)视频技术有限公司 Integrity checking method in document transmission
CN103095795A (en) * 2011-10-28 2013-05-08 三星Sds株式会社 Apparatus and method for transmitting data
CN104580158A (en) * 2014-12-12 2015-04-29 集时通(福建)信息科技有限公司 Distributed platform file and content distribution method and distributed platform file and content distribution system
CN105045626A (en) * 2015-07-21 2015-11-11 珠海格力电器股份有限公司 Program burning method, burning device and controller

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
关少华: "基于无线UKey的分段式文件加密系统研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413200A (en) * 2018-11-26 2019-03-01 Oppo(重庆)智能科技有限公司 A kind of method, client, MES and electronic equipment that resource imports
CN109413200B (en) * 2018-11-26 2021-04-23 Oppo(重庆)智能科技有限公司 Resource import method, client, MES and electronic equipment

Also Published As

Publication number Publication date
WO2018014564A1 (en) 2018-01-25
CN107645357B (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN104539739B (en) A kind of system, method and device that file uploads
KR101966626B1 (en) Method and apparatus for updating software of electronic devices in a vehicle
US7502316B2 (en) Data receiving apparatus and data receiving method
US8976814B2 (en) Method of transporting data from sending node to destination node
CN108933642B (en) Downlink retransmission method based on code block grouping, base station and terminal
CN108243146B (en) Information submitting method
CN108540823A (en) A kind of integrity of video method of calibration based on block chain technology
CN104348578A (en) Data processing method and device
CN107645357A (en) Transmit the incomplete restoration methods of file and device
CN101453479A (en) Fast document transmission system
CN106230990A (en) The method and apparatus of data transmission in wireless downloading
CN107801211A (en) A kind of non-sequential of message submits method and RLC entities, base station
CN111246428A (en) Network reliable communication method, system, device and storage medium
EP3606007B1 (en) Data verification method, data transmission method, related devices, system and storage medium
CN108076109A (en) A kind of method and apparatus for obtaining transmission file
CN103346961B (en) The method and system that a kind of data packing is exchanged
CN106302582A (en) File uploading method based on mobile unit, mobile unit, server and system
CN109194674A (en) A kind of processing method and processing device of communication data
CN106063190A (en) File repair method, and related apparatus and system
US8051200B1 (en) Forming multi-user packet based groups using response behavior
JP4372814B2 (en) Method for counting the number of transmissions of a data unit, a counting device, a transmitting device, and a computer program
CN107317745A (en) Method for message transmission and device between a kind of consumption terminal and Message Agent
CN113784389A (en) Data processing method and device
JP2009044695A (en) Communication control method, transmitter, and computer program
CN105634692A (en) Data packet transmitting method and receiving method based on UDP protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant