CN105357321A - File transmission method based on abstract value, terminal, and file server - Google Patents

File transmission method based on abstract value, terminal, and file server Download PDF

Info

Publication number
CN105357321A
CN105357321A CN201510916777.7A CN201510916777A CN105357321A CN 105357321 A CN105357321 A CN 105357321A CN 201510916777 A CN201510916777 A CN 201510916777A CN 105357321 A CN105357321 A CN 105357321A
Authority
CN
China
Prior art keywords
file
sequence number
message
digest value
server
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.)
Pending
Application number
CN201510916777.7A
Other languages
Chinese (zh)
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.)
Beijing Yuanxin Science and Technology Co Ltd
Original Assignee
Beijing Yuanxin Science and Technology Co Ltd
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 Beijing Yuanxin Science and Technology Co Ltd filed Critical Beijing Yuanxin Science and Technology Co Ltd
Priority to CN201510916777.7A priority Critical patent/CN105357321A/en
Publication of CN105357321A publication Critical patent/CN105357321A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The embodiment of the invention provides a file transmission method based on an abstract value, a terminal, and a file server. The method comprises the steps that a source terminal calculates the abstract value of a file after receiving a file transmission instruction, and enables the abstract value disposed in a file uploading request to be transmitted to the file server; the file server searches a file serial number corresponding to the abstract value in the file uploading request, and then enables the file serial number in a first message to be returned; the source terminal enables the file serial number in the first message to be carried in a file downloading instruction and to be transmitted to a target terminal according to the identification of the target terminal in a transmission instruction; and the target terminal downloads a corresponding file from the file server according to the received file serial number. The method can saves the network bandwidth and server resources.

Description

Based on the document transmission method of digest value, terminal and file server
Technical field
The present invention relates to communication technical field, specifically, the present invention relates to a kind of document transmission method based on digest value, terminal and file server.
Background technology
Along with the progress of science and technology and the development of society, the network such as the Internet and mobile Internet is popularized widely.User by accessing terminal to network such as desktop computer, smart mobile phone and panel computers, obtains information usually, shopping at network and information interaction etc.
In the process of information interaction, between terminal, usually need transfer files.Such as, between terminal in instant communication process, carry out file transfer.
At present, a kind of document transmission method comprises: source terminal by files passe to server; Server receives and stores the file of multiple source terminal transmission, downloads for multiple target terminal.
But inventor finds, said method exists the phenomenon that a large amount of duplicate file is uploaded to server.Particularly; server probably can receive the duplicate file that a large amount of source terminal sends within very short time; server can receive all duplicate files usually; easily cause a large amount of bandwidth sum server resources occupied; cause the waste of bandwidth sum server resource, and reduce the speed that server responds other requests.
Therefore, be necessary to provide a kind of document transmission method based on digest value, terminal and file server, with the duplicate file preventing server receiving terminal from sending, thus save the network bandwidth and server resource.
Summary of the invention
The present invention is directed to the shortcoming of existing file, propose a kind of document transmission method based on digest value, terminal and file server, there is in order to solve prior art the problem that terminal to server uploads duplicate file.
The present invention, according to an aspect, provides a kind of document transmission method based on digest value, comprising:
After source terminal receives the transfer instruction of file, calculate the digest value of described file, described digest value is carried in files passe request and sends to file server;
Described file sequence number, after finding out file sequence number corresponding to the digest value in described files passe request, is carried in the first message and returns by described file server;
File sequence number in first message, according to the mark of the target terminal in described transfer instruction, is carried in file download instruction and sends to described target terminal by described source terminal;
Described target terminal downloads corresponding document according to the file sequence number received from described file server.
Preferably, described method, also comprises:
If described file server is searched less than file sequence number corresponding to the digest value in described files passe request, then return after generating the second message;
After described source terminal receives the second message, described file is uploaded to described file server;
After described file server receives the file that described source terminal uploads, calculate the digest value of described file and be described file generated file sequence number; Described file and digest value thereof and file sequence number are carried out corresponding stored, and described file sequence number is carried in the 3rd message returns.
Preferably, described method, also comprises:
After described source terminal receives the 3rd message, according to the mark of the target terminal in described transfer instruction, the file sequence number in the 3rd message is carried in file download instruction and sends to described target terminal.
The embodiment of the present invention, according to another aspect, additionally provides a kind of document transmission system based on digest value, comprising:
Source terminal, for receive file transfer instruction after, calculate the digest value of described file, described digest value be carried in files passe request and send; And according to the mark of the target terminal in described transfer instruction, the file sequence number in the first message is carried in file download instruction and sends;
File server, for after finding out file sequence number corresponding to the digest value in described files passe request, is carried on described file sequence number in the first message and returns;
Target terminal, for downloading corresponding document according to the file sequence number received from described file server.
Preferably, if described file server is also for searching less than file sequence number corresponding to the digest value in described files passe request, then return after generating the second message; And after receiving file that described source terminal uploads, calculate the digest value of described file and be described file generated file sequence number; Described file and digest value thereof and file sequence number are carried out corresponding stored, and described file sequence number is carried in the 3rd message returns; And
Described file also for after receiving the second message, is uploaded to described file server by described source terminal.
Preferably, described source terminal, also for after receiving the 3rd message, according to the mark of the target terminal in described transfer instruction, by the file sequence number in the 3rd message, is carried in file download instruction and sends to described target terminal.
The embodiment of the present invention, according to another aspect, additionally provides a kind of document transmission method based on digest value, comprising:
After source terminal receives the transfer instruction of file, calculate the digest value of described file, described digest value is carried in files passe request and sends to file server; And
After described source terminal receives the first message that described file server returns, according to the mark of the target terminal in described transfer instruction, the file sequence number in the first message is carried in file download instruction and sends to described target terminal.
Preferably, described method, also comprises:
Described file is uploaded to described file server after receiving the second message that described file server returns by described source terminal; And
After receiving the 3rd message, according to the mark of the target terminal in described transfer instruction, the file sequence number in the 3rd message is carried in the instruction of described file download and sends to described target terminal.
Preferably, described method, also comprises:
Target terminal, according to the file sequence number received, sends file download request to described file server.
The embodiment of the present invention, according to another aspect, additionally provides a kind of terminal, comprising:
Files passe request module, for receive file transfer instruction after, calculate the digest value of described file, described digest value be carried in files passe request and send to file server; After receiving the first message that described file server returns, send file download instruction notice;
File download indicating module, after receiving described file download instruction notice, according to the mark of the target terminal in described transfer instruction, file sequence number in first message is carried in file download instruction and sends to described target terminal, download described file in order to indicate described target terminal from described file server.
Preferably, described terminal, also comprises: files passe module; And
Described files passe request module also for after receiving the second message that described file server returns, sends files passe notice; And after receiving the 3rd message, send file download instruction notice;
Described file is uploaded to described file server after being used for receiving described files passe notice by described files passe module; And
Described file download indicating module also for receive described file download instruction notice after, according to the mark of the target terminal in described transfer instruction, the file sequence number in the 3rd message is carried on described file download instruction in send to described target terminal.
Preferably, described terminal, also comprises:
File download module, for according to the file sequence number received, sends file download request to described file server.
The embodiment of the present invention, according to another aspect, additionally provides a kind of document transmission method based on digest value, comprising:
File server receives the files passe request that multiple source terminal sends; For each files passe request received, after finding out file sequence number corresponding to the digest value in described files passe request, described file sequence number is carried in the first message, returns to the source terminal sending this file upload request;
Described file server receives the file download request that multiple target terminal sends; Target terminal to the request of each transmission file download returns respective file.
Preferably, described method, also comprises:
Described file server, for each files passe request received, if search less than file sequence number corresponding to the digest value in this file upload request, then returns to the source terminal sending this file upload request after generating the second message;
Described file server receives the file that multiple source terminal is uploaded; For each file received, the digest value calculating this file is also this file spanned file sequence number; By this file and digest value thereof and file sequence number corresponding stored, and described file sequence number is carried in the 3rd message returns to the source terminal uploading this article part.
The embodiment of the present invention, according to another aspect, additionally provides a kind of file server, comprising:
Upload request processing module, for receiving the files passe request that multiple source terminal sends; For each files passe request received, after finding out file sequence number corresponding to the digest value in described files passe request, described file sequence number is carried in the first message, returns to the source terminal sending this file upload request;
Download request processing module, for receiving the file download request that multiple target terminal sends; Target terminal to the request of each transmission file download returns respective file.
Preferably, described upload request processing module is also for for each files passe request received, if search less than file sequence number corresponding to the digest value in this file upload request, then return to the source terminal sending this file upload request after generating the second message; And receive the file that multiple source terminal uploads; For each file received, the digest value calculating this file is also this file spanned file sequence number; By this file and digest value thereof and file sequence number corresponding stored, and described file sequence number is carried in the 3rd message returns to the source terminal uploading this article part.
In the embodiment of the present invention, the digest value that source terminal calculates file waiting for transmission is uploaded to file server; When file server finds out and stores file sequence number corresponding to this digest value, namely confirm to have stored file corresponding to this digest value, now repeat to upload this file without the need to source terminal and can download this file for target terminal.That is, in the embodiment of the present invention, source terminal uploading data amount is after the digest value of whole file, can avoid repeating to upload identical file, save the resource of the network bandwidth and file server, thus can promote the response speed of file server.
And, in the embodiment of the present invention, file server receives numerous source terminal upload file usually, when each source terminal all by uploading data amount much smaller than whole file digest value, avoid repeating to upload identical file time, greatly can save the network bandwidth, and greatly save the resource of file server; Thus the response speed of file server can be promoted to a great extent, or when keeping file server response speed constant, promote the number of accessible terminal.
The aspect that the present invention adds and advantage will part provide in the following description, and these will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein:
Fig. 1 is the structural representation of the document transmission system based on digest value of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the document transmission method based on digest value of the embodiment of the present invention;
Fig. 3 is the block schematic illustration of the source terminal of the embodiment of the present invention or the internal structure of target terminal;
Fig. 4 is the block schematic illustration of the internal structure of the file server of the embodiment of the present invention.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not limitation of the present invention being interpreted as.
Those skilled in the art of the present technique are appreciated that unless expressly stated, and singulative used herein " ", " one ", " described " and " being somebody's turn to do " also can comprise plural form.Should be further understood that, the wording used in specification of the present invention " comprises " and refers to there is described feature, integer, step, operation, element and/or assembly, but does not get rid of and exist or add other features one or more, integer, step, operation, element, assembly and/or their group.Should be appreciated that, when we claim element to be " connected " or " coupling " to another element time, it can be directly connected or coupled to other elements, or also can there is intermediary element.In addition, " connection " used herein or " coupling " can comprise wireless connections or wirelessly to couple.Wording "and/or" used herein comprises one or more whole or arbitrary unit listing item be associated and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (comprising technical term and scientific terminology), have the meaning identical with the general understanding of the those of ordinary skill in field belonging to the present invention.It should also be understood that, those terms defined in such as general dictionary, should be understood to that there is the meaning consistent with the meaning in the context of prior art, unless and by specific definitions as here, otherwise can not explain by idealized or too formal implication.
Those skilled in the art of the present technique are appreciated that, here used " terminal ", " terminal equipment " had both comprised the equipment of wireless signal receiver, it only possesses the equipment of the wireless signal receiver without emissivities, comprise again the equipment receiving and launch hardware, it has and on bidirectional communication link, can carry out the reception of two-way communication and launch the equipment of hardware.This equipment can comprise: honeycomb or other communication equipments, its honeycomb or other communication equipment of having single line display or multi-line display or not having multi-line display; PCS (PersonalCommunicationsService, PCS Personal Communications System), it can combine voice, data processing, fax and/or its communication ability; PDA (PersonalDigitalAssistant, personal digital assistant), it can comprise radio frequency receiver, beep-pager, the Internet/intranet access, web browser, notepad, calendar and/or GPS (GlobalPositioningSystem, global positioning system) receiver; Conventional laptop and/or palmtop computer or other equipment, it has and/or comprises the conventional laptop of radio frequency receiver and/or palmtop computer or other equipment.Here used " terminal ", " terminal equipment " can be portable, can transport, be arranged in the vehicles (aviation, sea-freight and/or land), or be suitable for and/or be configured at local runtime, and/or with distribution form, any other position operating in the earth and/or space is run.Here used " terminal ", " terminal equipment " can also be communication terminal, access terminals, music/video playback terminal, can be such as PDA, MID (MobileInternetDevice, mobile internet device) and/or there is the mobile phone of music/video playing function, also can be the equipment such as intelligent television, Set Top Box.
The present inventor considers, can arrange the file server being mainly used in storage file.File server can precompute the digest value of the file be stored in book server, and with file corresponding stored.Source terminal is uploaded to file server after can calculating the digest value of file waiting for transmission; File server finds out file sequence number corresponding to the digest value of reception, namely confirms that the file that this digest value is corresponding has been stored in book server.Afterwards, source terminal uploads this file without the need to repeating, and notification target terminal can download this file stored from file server.Because file server receives numerous source terminal upload file, the data volume of the digest value of file is far smaller than the data volume of file usually, avoid source terminal to upload duplicate file and can save a large amount of network bandwidths, and the resource of file server can be saved, thus promote the response speed of file server.
The technical scheme of the embodiment of the present invention is specifically introduced below in conjunction with accompanying drawing.
In the embodiment of the present invention, based on the document transmission system of digest value configuration diagram as shown in Figure 1, comprising: source terminal 101, file server 121 and target terminal 103.
Wherein, source terminal 101 can be multiple, can be desktop computer, smart mobile phone and dull and stereotyped apparatus such as computer.
Target terminal 103 also can be multiple, can be desktop computer, smart mobile phone and dull and stereotyped apparatus such as computer.
Source terminal 101 or target terminal 103 can pass through LAN optimization network, also can pass through mobile communications network access network.
Such as, source terminal 101 or target terminal 103 can pass through WiFi (WirelessFidelity, Wireless Fidelity) LAN optimization the Internet.
For another example, source terminal 101 or target terminal 103 can pass through 3G (3rd-Generationwirelesstelephonetechnology, third generation mobile communication technology), the mobile communications network accessing Internet such as LTE (LongTermEvolution, Long Term Evolution).
File server 121 can with wired mode access network.Such as, file server 121 passes through wide area network or the backbone network of intelligent acess the Internet.
File server 121 is mainly used in storage file, uploads or download file etc. for terminal; Concrete function in follow-up introduction, will repeat no more herein.
File server 121 receives file that multiple source terminal 101 uploads and is stored in book server.File server 121 for the file of each storage, according to digest algorithm, after calculating the digest value of this file, by the digest value that calculates and this file corresponding stored.
Preferably, file server 121, when the digest value of a calculating file, can carry out digest calculations to the full content of this file.
Preferably, the digest algorithm that file server 121 adopts can be one of following algorithm: CRC (CyclicRedundancyCheck, cyclic redundancy check (CRC)) algorithm, MD5 (Message-DigestAlgorithm5, Message Digest 5 version 5), SHA (SecureHashAlgorithm, Secure Hash Algorithm), RIPEMD or TIGER etc.
Be appreciated that in the embodiment of the present invention, the digest algorithm that file server 121 adopts, the digest algorithm adopted with multiple source terminal 101 is consistent.
File server 121, for the file of each storage, can be after this article part spanned file sequence number, by the file sequence number of generation and the digest value corresponding stored of this file and this file.
More excellent, as shown in Figure 2, the Ftp server platform being provided with file server 121 can also comprise: signal server 122.
Signal server 122 can with wired mode access network.Such as, signal server 122 passes through wide area network or the backbone network of intelligent acess the Internet.
Signal server 122 is mainly used in setting up the session between source terminal 101 and target terminal 103, and recording conversation, the service of inquiry session is provided; Concrete function in follow-up introduction, will repeat no more herein.
The document transmission system of the embodiment of the present invention supports that single source terminal 101 is to single target terminal 103 transfer files, support that single source terminal 101 is to multiple target terminal 103 groups of shared files, also supports that multiple source terminal 101 is respectively to multiple target terminal 103 transfer files.Wherein, latter two document transmission method is all based on the first document transmission method.
For single source terminal 101 to single target terminal 103 transfer files, document transmission method based on digest value in the embodiment of the present invention comprises: after source terminal 101 receives the transfer instruction of file, calculate the digest value of this file, digest value is carried in files passe request and sends to file server 121; This file sequence number, after finding out file sequence number corresponding to the digest value in files passe request, is carried in the first message and returns by file server 121; File sequence number in first message, according to the mark of the target terminal in transfer instruction, is carried in file download instruction and sends to target terminal 103 by source terminal 101; Target terminal 103, according to the file sequence number received, downloads corresponding document from file server 121.
Preferably, before comprising the document transmission system transfer files of signal server 122, the source terminal 101 in this document transmission system and target terminal 103, can be stored in respective mark in signal server 122 by modes such as registrations.
After source terminal 101 and target terminal 103 access network, all log in signal server 122.Such as, source terminal 101 and target terminal 103, by after instant messaging application program access network, all log in signal server 122.
The mark of signal server 122 corresponding record source terminal 101 and the current network address thereof, and the mark of corresponding record target terminal 103 and the current network address thereof.
Below based on the document transmission system comprising signal server 122, and for single source terminal 101 to single target terminal 103 transfer files, specifically introduce the document transmission method based on digest value of the embodiment of the present invention, the schematic flow sheet of the method as shown in Figure 1, comprises the steps:
S201: after source terminal 101 receives the transfer instruction of file, calculates the digest value of this file, is carried in files passe request by the digest value calculated and sends to file server 121.
Particularly, source terminal 101 receives the transfer instruction for a certain file of user's input.Transfer instruction comprises: the mark of file waiting for transmission, the mark of target terminal 102.
Such as, source terminal 101 shows interactive interface on screen, the mark of the target terminal 102 as file reception side of user's input is received by this interactive interface, and receive the click event of user for the icon of file by this interactive interface, determine that this file is file waiting for transmission, and determine to receive the transfer instruction of user for this file.
After source terminal receives the transfer instruction of file, according to the identical digest algorithm adopted with file server 121, calculate the digest value of this file; The digest value calculated is carried in files passe request and sends to file server 121.
Preferably, source terminal 101 can be set up instant messaging by signal server 122 with target terminal 103 and be connected before receiving the transfer instruction for file of user's input.
S202: file server 121 confirms that whether the digest value in the files passe request received is consistent with the digest value deposited; If so, then step S203 is performed; Otherwise, perform step S205.
Particularly, file server 121 therefrom parses the digest value of file after receiving the files passe request of source terminal 101 transmission; By the digest value parsed, compare one by one with the digest value of the multiple files stored in book server, confirm whether there is a digest value in the digest value stored consistent with the digest value parsed: if, then confirm that the digest value in the files passe request received is consistent with the digest value deposited, perform step S203; Otherwise, confirm that the digest value in the files passe request received is inconsistent with the digest value deposited, perform step S205.
S203: this file sequence number is carried in the first message and returns after finding out file sequence number corresponding to digest value in the files passe request of reception by file server 121.
Particularly, file server 121 from book server in the digest value of the file of corresponding stored and file sequence number, finds out the file sequence number that digest value in the files passe request of reception is corresponding; The file sequence number found out is carried in the first message, returns to the source terminal 101 sending files passe request.Wherein, the first message can be specifically the message of forbidding files passe.
S204: the file sequence number in the first message, according to the mark of the target terminal 103 in transfer instruction, is carried on after sending to signal server 122 in file download instruction, performs step S209 by source terminal 101.
Particularly, after source terminal 101 receives the first message that file server 121 returns, by the file sequence number in the mark of the target terminal 103 in the transfer instruction that receives in above-mentioned steps S201 and the first message, all be carried on after sending to signal server 122 in file download instruction, perform step S209.
S205: after file server 121 generates the second message, returns the second message to the source terminal 101 sending files passe request.
Particularly, the confirmation result that file server 121 is inconsistent with the digest value deposited according to the digest value in above-mentioned steps S202 file upload request, generates the second message in this step; Second message is returned to the source terminal 101 sending files passe request.Wherein, the second message can be specifically the message allowing files passe.
S206: after source terminal 101 receives the second message, uploads file to file server 121.
Particularly, source terminal 101 by the file waiting for transmission determined in above-mentioned steps S201, is uploaded to file server 121 after receiving the second message that file server 121 returns.
S207: after file server 121 receives the file that source terminal 101 uploads, calculate the digest value of this file, and be this file spanned file sequence number, this file and digest value thereof and file sequence number are carried out corresponding stored, and the file sequence number of this file is carried in the 3rd message returns.
Particularly, file server 121 calculates the digest value of this file, and is this file spanned file sequence number after receiving the file that source terminal 101 uploads; By the file that receives and the digest value of this file and file sequence number corresponding stored.
Preferably, file server 121 calculates the digest value of this file after receiving the file that source terminal 101 uploads; Judge that whether the digest value that calculates is consistent with the digest value in the files passe request received in above-mentioned steps S202: if so, then by the digest value of the file that receives and this file and file sequence number corresponding stored; Otherwise, again return the second message to the source terminal 101 sending files passe request, until the digest value of file that the source terminal 101 calculated is uploaded is consistent with the digest value in the files passe request received in above-mentioned steps S202.
Be appreciated that when file server 121 judges that two digest value are consistent, show that the file that file server 121 receives is consistent with the file that source terminal 101 is uploaded; When file server 121 judges that two digest value are inconsistent, show the file that file server 121 receives and the file that source terminal 101 is uploaded inconsistent, can prevent file server 121 by receive imperfect or wrong file and files passe request in digest value corresponding stored.
Preferably, the file that the source terminal 101 received is uploaded by file server 121, with the digest value of this file and file sequence number corresponding stored under the identification name of this source terminal 101.
Further, the file that file server 121 is uploaded for the source terminal 101 received, is carried on the file sequence number of this file in the 3rd message and returns to the source terminal 101 uploading this article part.3rd message can be specifically the message showing that file has been uploaded.
S208: after source terminal 101 receives the 3rd message, according to the mark of the target terminal 103 in transfer instruction, by the file sequence number in the 3rd message, is carried in file download instruction and sends to signal server 122.
Particularly, after source terminal 101 receives the 3rd message that file server 121 returns, the file sequence number therefrom parsed; For the transfer instruction received in above-mentioned steps S201, by the file sequence number parsed in the mark of the target terminal 103 in this transfer instruction and the 3rd message, be all carried in file download instruction and send to signal server 122.
Preferably, source terminal 101 therefrom parses file sequence number after receiving the 3rd message that file server 121 returns; For the file waiting for transmission determined in above-mentioned steps S201, by the title of this file, take the attribute informations such as storage size, with the mark of target terminal 103 and the file sequence number of this file, be all carried in the lump in file download instruction and send to signal server 122.
S209: after signal server 122 receives the file download instruction of source terminal 101 transmission, according to the mark of the target terminal 103 in the instruction of this file download, the instruction of this file download is forwarded to target terminal 103.
Particularly, signal server 122 therefrom parses the file sequence number of file waiting for transmission, the mark of target terminal 103 after receiving the file download instruction of source terminal 101 transmission; Determine the network address that the target terminal 103 corresponding to mark of the target terminal 103 parsed is current; The network address current according to the target terminal 103 determined, forwards file download instruction to target terminal 103.
S210: target terminal 103, according to the file sequence number received, sends file download request to file server 121.
Particularly, target terminal 103 therefrom parses file sequence number, this file sequence number is carried in file download request and sends to file server 121 after receiving the file download instruction of signal server 122 forwarding.
Preferably, target terminal 103 parses the file sequence number of file from file download instruction, and parses the file name of this file and take the attribute informations such as storage size.
S211: corresponding file, according to the file download request received, returns to target terminal 103 by file server 121.
Particularly, file server 121 therefrom parses file sequence number after receiving the file download request of target terminal 103 transmission; Find out the file with this file sequence number corresponding stored, return to the target terminal 103 sending file download request.
S212: target terminal 103 is shown after receiving the file that file server 121 returns.
Particularly, target terminal 103 shows this file after receiving the file that file server 121 returns; Such as, show or play this file.
Preferably, the attribute information of target terminal 103 to the file determined in above-mentioned steps S210 is shown; And target terminal 103 is according to the attribute information of this file, create a file with attribute; By the content of the file that file server 121 returns, be saved in after in the file of establishment, show the file of this establishment.
In practical operation, above-mentioned steps S207 and S208 can be performed simultaneously, perform step S208 after also can first performing step S207 or perform step S207 after first performing step S208.
In fact, the mark of multiple target terminal 102 can be comprised in the transfer instruction in above-mentioned steps S201.In above-mentioned steps S208, source terminal 101, by the file sequence number in the mark of the multiple target terminals 103 in transfer instruction and the 3rd message, is all carried in file download instruction and sends to signal server 122.In above-mentioned steps S209, signal server 122 can according to the mark of each target terminal 103 in file download instruction, to transmit a document sequence number respectively to each target terminal 103.Each target terminal 103 receiving file sequence number can separately according to the method for above-mentioned steps S210-S212 from file server 121 download file.Thus realize single source terminal 101 file is mass-sended shared to multiple target terminal 103.
In fact, in the process of multiple source terminal 101 respectively to multiple target terminal 103 transfer files, between every source terminal 101 of connecting for a pair and target terminal 103, the method transfer files of above-mentioned steps S201-S212 can be adopted.In the process, file server 121 receives the files passe request that multiple source terminal 101 sends; Signal server 122 can receive the file download instruction that multiple source terminal 101 sends.
It will be understood by those skilled in the art that in actual applications, source terminal 101 also can have the function from file server 121 download file; Target terminal 103 also can have to file server 121 upload file and send the function of file download instruction to target terminal 103.That is, in fact source terminal 101 can have identical function, identical internal structure with target terminal 103.
Corresponding to the above-mentioned document transmission method based on digest value, the block schematic illustration of the internal structure of the terminal (i.e. source terminal 101 or target terminal 103) in the embodiment of the present invention as shown in Figure 3, comprising: files passe request module 301 and file download indicating module 302.
Wherein, files passe request module 301 for receive file transfer instruction after, calculate the digest value of this file, the digest value calculated be carried in files passe request and send to file server 121; And after receiving the first message that file server 121 returns, send file download instruction notice.
Preferably, files passe request module 301 receives the mark of the target terminal 102 as file reception side of user's input, and receive the click event of user for the icon of file, determine that this file is file waiting for transmission, and determine to receive the transfer instruction of user for this file.
After file download indicating module 302 notifies for the file download instruction receiving files passe request module 301 transmission, according to the mark of the target terminal in transfer instruction, the file sequence number in the first message files passe request module 301 received is carried in file download instruction and sends to signal server 122.
More excellent, as shown in Figure 3, in the terminal of the embodiment of the present invention, also comprise: files passe module 303.
Files passe request module 301 also for after receiving the second message that file server 121 returns, sends files passe notice; And after receiving the 3rd message that file server 121 returns, send file download instruction notice.
After files passe module 303 notifies for the files passe receiving files passe request module 301 transmission, the file waiting for transmission files passe request module 301 determined, uploads to file server 121.
After the file download instruction that file download indicating module 302 also sends for receiving files passe request module 301 notifies, according to the mark of the target terminal in the transfer instruction that files passe request module 301 receives, the file sequence number in the 3rd message files passe request module 301 received is carried in file download instruction and sends to signal server 122.
More excellent, as shown in Figure 3, in the terminal of the embodiment of the present invention, also comprise: file download module 304.
File sequence number during file download module 304 indicates for the file download sent according to the signal server 122 received, sends file download request to file server 121; And show after receiving file that file server 121 returns for file download request.
The implementation method of the files passe request module 301 in above-mentioned terminal, file download indicating module 302, files passe module 303 and file download module 304 function, with reference to the particular content of process step in above-mentioned accompanying drawing 2, can repeat no more herein.
Corresponding to the above-mentioned document transmission method based on digest value, the block schematic illustration of the internal structure of the file server 121 in the embodiment of the present invention as shown in Figure 4, comprising: upload request processing module 401 and download request processing module 402.
Wherein, upload request processing module 401 is for receiving the files passe request of multiple source terminal 101 transmission; For each files passe request received, in presents server in advance in the digest value of corresponding stored and file sequence number, after finding out file sequence number corresponding to digest value in this file upload request, this file sequence number is carried in the first message, returns to the source terminal 101 sending this file upload request.
The file download request that download request processing module 402 sends for receiving multiple target terminal 103; Target terminal 103 to the request of each transmission file download returns respective file.
Particularly, download request processing module 402, for each file download request received, parses file sequence number from this file download request; Find out with the file of this file sequence number corresponding stored after, the file found out is returned to sending the target terminal 103 of this file download request.
More excellent, upload request processing module 401 is also for for each files passe request received, if search less than file sequence number corresponding to the digest value in this file upload request, then return to the source terminal 101 sending this file upload request after generating the second message; And receive the file that multiple source terminal 101 uploads; For each file received, the digest value calculating this file is also this file spanned file sequence number; By this file and digest value thereof and file sequence number corresponding stored, and the file sequence number of this file is carried in the 3rd message returns to the source terminal 101 uploading this article part.
The implementation method of above-mentioned upload request processing module 401 and download request processing module 402 function, with reference to the particular content of the process step shown in above-mentioned Fig. 2, can repeat no more herein.
In the embodiment of the present invention, the digest value that source terminal calculates file waiting for transmission is uploaded to file server; When file server finds out and stores file sequence number corresponding to this digest value, namely confirm to have stored file corresponding to this digest value, now repeat to upload this file without the need to source terminal and can download this file for target terminal.That is, in the embodiment of the present invention, source terminal uploading data amount is after the digest value of whole file, can avoid repeating to upload identical file, save the resource of the network bandwidth and file server, thus can promote the response speed of file server.
And, in the embodiment of the present invention, file server receives numerous source terminal upload file usually, when each source terminal all by uploading data amount much smaller than whole file digest value, avoid repeating to upload identical file time, greatly can save the network bandwidth, and greatly save the resource of file server; Thus the response speed of file server can be promoted to a great extent, or when keeping file server response speed constant, promote the number of accessible terminal.
Those skilled in the art of the present technique are appreciated that the one or more equipment that the present invention includes and relate to for performing in operation described in the application.These equipment for required object and specialized designs and manufacture, or also can comprise the known device in all-purpose computer.These equipment have storage computer program within it, and these computer programs optionally activate or reconstruct.Such computer program can be stored in equipment (such as, computer) in computer-readable recording medium or be stored in and be suitable for store electrons instruction and be coupled in the medium of any type of bus respectively, described computer-readable medium includes but not limited to that the dish of any type (comprises floppy disk, hard disk, CD, CD-ROM, and magneto optical disk), ROM (Read-OnlyMemory, read-only memory), RAM (RandomAccessMemory, memory immediately), EPROM (ErasableProgrammableRead-OnlyMemory, Erarable Programmable Read only Memory), EEPROM (ElectricallyErasableProgrammableRead-OnlyMemory, EEPROM (Electrically Erasable Programmable Read Only Memo)), flash memory, magnetic card or light card.Namely, computer-readable recording medium comprises and being stored or any medium of transmission information with the form that can read by equipment (such as, computer).
Those skilled in the art of the present technique are appreciated that the combination that can realize the frame in each frame in these structure charts and/or block diagram and/or flow graph and these structure charts and/or block diagram and/or flow graph with computer program instructions.Those skilled in the art of the present technique are appreciated that, the processor that these computer program instructions can be supplied to all-purpose computer, special purpose computer or other programmable data processing methods realizes, thus is performed the scheme of specifying in the frame of structure chart disclosed by the invention and/or block diagram and/or flow graph or multiple frame by the processor of computer or other programmable data processing methods.
Those skilled in the art of the present technique are appreciated that various operations, method, the step in flow process, measure, the scheme discussed in the present invention can be replaced, changes, combines or delete.Further, there is various operations, method, other steps in flow process, measure, the scheme discussed in the present invention also can be replaced, change, reset, decompose, combine or delete.Further, of the prior art have also can be replaced with the step in operation various disclosed in the present invention, method, flow process, measure, scheme, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (16)

1. based on a document transmission method for digest value, it is characterized in that, comprising:
After source terminal receives the transfer instruction of file, calculate the digest value of described file, described digest value is carried in files passe request and sends to file server;
Described file sequence number, after finding out file sequence number corresponding to the digest value in described files passe request, is carried in the first message and returns by described file server;
File sequence number in first message, according to the mark of the target terminal in described transfer instruction, is carried in file download instruction and sends to described target terminal by described source terminal;
Described target terminal downloads corresponding document according to the file sequence number received from described file server.
2. method according to claim 1, is characterized in that, also comprises:
If described file server is searched less than file sequence number corresponding to the digest value in described files passe request, then return after generating the second message;
After described source terminal receives the second message, described file is uploaded to described file server;
After described file server receives the file that described source terminal uploads, calculate the digest value of described file and be described file generated file sequence number; Described file and digest value thereof and file sequence number are carried out corresponding stored, and described file sequence number is carried in the 3rd message returns.
3. method according to claim 2, is characterized in that, also comprises:
After described source terminal receives the 3rd message, according to the mark of the target terminal in described transfer instruction, the file sequence number in the 3rd message is carried in file download instruction and sends to described target terminal.
4. based on a document transmission system for digest value, it is characterized in that, comprising:
Source terminal, for receive file transfer instruction after, calculate the digest value of described file, described digest value be carried in files passe request and send; And according to the mark of the target terminal in described transfer instruction, the file sequence number in the first message is carried in file download instruction and sends;
File server, for after finding out file sequence number corresponding to the digest value in described files passe request, is carried on described file sequence number in the first message and returns;
Target terminal, for downloading corresponding document according to the file sequence number received from described file server.
5. system according to claim 4, is characterized in that,
If described file server also for searching less than file sequence number corresponding to the digest value in described files passe request, then returns after generating the second message; And after receiving file that described source terminal uploads, calculate the digest value of described file and be described file generated file sequence number; Described file and digest value thereof and file sequence number are carried out corresponding stored, and described file sequence number is carried in the 3rd message returns; And
Described file also for after receiving the second message, is uploaded to described file server by described source terminal.
6. system according to claim 5, is characterized in that,
Described source terminal, also for after receiving the 3rd message, according to the mark of the target terminal in described transfer instruction, by the file sequence number in the 3rd message, is carried in file download instruction and sends to described target terminal.
7. based on a document transmission method for digest value, it is characterized in that, comprising:
After source terminal receives the transfer instruction of file, calculate the digest value of described file, described digest value is carried in files passe request and sends to file server; And
After described source terminal receives the first message that described file server returns, according to the mark of the target terminal in described transfer instruction, the file sequence number in the first message is carried in file download instruction and sends to described target terminal.
8. method according to claim 7, is characterized in that, also comprises:
Described file is uploaded to described file server after receiving the second message that described file server returns by described source terminal; And
After receiving the 3rd message, according to the mark of the target terminal in described transfer instruction, the file sequence number in the 3rd message is carried in the instruction of described file download and sends to described target terminal.
9. method according to claim 8, is characterized in that, also comprises:
Target terminal, according to the file sequence number received, sends file download request to described file server.
10. a terminal, is characterized in that, comprising:
Files passe request module, for receive file transfer instruction after, calculate the digest value of described file, described digest value be carried in files passe request and send to file server; After receiving the first message that described file server returns, send file download instruction notice;
File download indicating module, after receiving described file download instruction notice, according to the mark of the target terminal in described transfer instruction, file sequence number in first message is carried in file download instruction and sends to described target terminal, download described file in order to indicate described target terminal from described file server.
11. terminals according to claim 10, is characterized in that, also comprise: files passe module; And
Described files passe request module also for after receiving the second message that described file server returns, sends files passe notice; And after receiving the 3rd message, send file download instruction notice;
Described file is uploaded to described file server after being used for receiving described files passe notice by described files passe module; And
Described file download indicating module also for receive described file download instruction notice after, according to the mark of the target terminal in described transfer instruction, the file sequence number in the 3rd message is carried on described file download instruction in send to described target terminal.
12. terminals according to claim 11, is characterized in that, also comprise:
File download module, for according to the file sequence number received, sends file download request to described file server.
13. 1 kinds based on the document transmission method of digest value, is characterized in that, comprising:
File server receives the files passe request that multiple source terminal sends; For each files passe request received, after finding out file sequence number corresponding to the digest value in described files passe request, described file sequence number is carried in the first message, returns to the source terminal sending this file upload request;
Described file server receives the file download request that multiple target terminal sends; Target terminal to the request of each transmission file download returns respective file.
14. methods according to claim 13, is characterized in that, also comprise:
Described file server, for each files passe request received, if search less than file sequence number corresponding to the digest value in this file upload request, then returns to the source terminal sending this file upload request after generating the second message;
Described file server receives the file that multiple source terminal is uploaded; For each file received, the digest value calculating this file is also this file spanned file sequence number; By this file and digest value thereof and file sequence number corresponding stored, and described file sequence number is carried in the 3rd message returns to the source terminal uploading this article part.
15. 1 kinds of file servers, is characterized in that, comprising:
Upload request processing module, for receiving the files passe request that multiple source terminal sends; For each files passe request received, after finding out file sequence number corresponding to the digest value in described files passe request, described file sequence number is carried in the first message, returns to the source terminal sending this file upload request;
Download request processing module, for receiving the file download request that multiple target terminal sends; Target terminal to the request of each transmission file download returns respective file.
16. file servers according to claim 15, is characterized in that,
Described upload request processing module, also for for each files passe request received, if search less than file sequence number corresponding to the digest value in this file upload request, then returns to the source terminal sending this file upload request after generating the second message; And receive the file that multiple source terminal uploads; For each file received, the digest value calculating this file is also this file spanned file sequence number; By this file and digest value thereof and file sequence number corresponding stored, and described file sequence number is carried in the 3rd message returns to the source terminal uploading this article part.
CN201510916777.7A 2015-12-11 2015-12-11 File transmission method based on abstract value, terminal, and file server Pending CN105357321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510916777.7A CN105357321A (en) 2015-12-11 2015-12-11 File transmission method based on abstract value, terminal, and file server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510916777.7A CN105357321A (en) 2015-12-11 2015-12-11 File transmission method based on abstract value, terminal, and file server

Publications (1)

Publication Number Publication Date
CN105357321A true CN105357321A (en) 2016-02-24

Family

ID=55333180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510916777.7A Pending CN105357321A (en) 2015-12-11 2015-12-11 File transmission method based on abstract value, terminal, and file server

Country Status (1)

Country Link
CN (1) CN105357321A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547352A (en) * 2016-06-24 2018-01-05 腾讯科技(深圳)有限公司 Document sending method, apparatus and system
CN108848172A (en) * 2018-06-22 2018-11-20 深圳云之家网络有限公司 A kind of document transmission method and system
CN111770132A (en) * 2020-05-18 2020-10-13 岭东核电有限公司 Work order downloading method, work order uploading method, device and computer equipment
CN112788090A (en) * 2020-05-08 2021-05-11 珠海金山办公软件有限公司 Network resource transmission method, device and system
CN112838981A (en) * 2021-02-05 2021-05-25 西藏宁算科技集团有限公司 Instant message processing method, device and system and electronic equipment
CN113711546A (en) * 2019-04-15 2021-11-26 微软技术许可有限责任公司 Avoidable transmission of reduced electronic message content
CN115134322A (en) * 2022-06-24 2022-09-30 天翼电信终端有限公司 File secure transmission method and device based on cloud mobile phone, cloud mobile phone platform and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547352A (en) * 2016-06-24 2018-01-05 腾讯科技(深圳)有限公司 Document sending method, apparatus and system
CN108848172A (en) * 2018-06-22 2018-11-20 深圳云之家网络有限公司 A kind of document transmission method and system
CN113711546A (en) * 2019-04-15 2021-11-26 微软技术许可有限责任公司 Avoidable transmission of reduced electronic message content
CN113711546B (en) * 2019-04-15 2023-09-26 微软技术许可有限责任公司 Electronic message transmission method
CN112788090A (en) * 2020-05-08 2021-05-11 珠海金山办公软件有限公司 Network resource transmission method, device and system
CN112788090B (en) * 2020-05-08 2023-06-23 珠海金山办公软件有限公司 Network resource transmission method, device and system
CN111770132A (en) * 2020-05-18 2020-10-13 岭东核电有限公司 Work order downloading method, work order uploading method, device and computer equipment
CN111770132B (en) * 2020-05-18 2023-04-28 岭东核电有限公司 Work order downloading method, work order uploading method, device and computer equipment
CN112838981A (en) * 2021-02-05 2021-05-25 西藏宁算科技集团有限公司 Instant message processing method, device and system and electronic equipment
CN115134322A (en) * 2022-06-24 2022-09-30 天翼电信终端有限公司 File secure transmission method and device based on cloud mobile phone, cloud mobile phone platform and storage medium
CN115134322B (en) * 2022-06-24 2023-06-30 天翼电信终端有限公司 File secure transmission method and device, cloud mobile phone platform and storage medium

Similar Documents

Publication Publication Date Title
CN105357321A (en) File transmission method based on abstract value, terminal, and file server
US10769215B2 (en) Method, apparatus and computer program product providing an application integrated mobile device search solution using context information
CN104333599A (en) Application sharing method and system and application service platform
CN105491132A (en) File server, terminal and file subpackage transmission method
CN101115225B (en) System and method for implementing RSS subscription using multimedia message of mobile terminal
CN102271165B (en) Device and method for sharing and managing resources searched on Internet
CN102769640B (en) The update method of user profile, server and system
WO2008104131A1 (en) Method, apparatus and system of searching and downloading mobile telephone file
CN104506643A (en) Server of distributed storage system and data synchronizing method between servers
KR20100029257A (en) Systems, methods, devices, and computer program products for downloading content for offline browsing
CN102546656A (en) Method, system and device for finding user in social network
CN102708192B (en) A kind of method and system of document sharing, equipment
CN104111921A (en) Method and equipment for acquiring network feedback
KR20150087390A (en) Advertisement processing method and device
CN104468833A (en) Request information unified processing method and device
CN104717527A (en) Video transmission method and video transmission device
KR20090091351A (en) System, method, apparatus and computer program product for providing content selection in a network environment
US20120143943A1 (en) Cloud service system and method, and recording medium
CN104754618A (en) Wireless data transmission method and device
CN102160052A (en) Method and apparatus for address book contact management
AU2020412338B2 (en) Method and device for improving the searchability of incident-specific social media content posted via particularly identified communication devices
US9060326B2 (en) RSS channel information provision method and system and portable device using the same
CN101188626B (en) Data downloading system, device and method
CN112448880A (en) Method and device for sending RCS service message, client and server
KR20130037315A (en) Device and method for providing video file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160224

RJ01 Rejection of invention patent application after publication