CN101075879B - Method for downloading data - Google Patents

Method for downloading data Download PDF

Info

Publication number
CN101075879B
CN101075879B CN2006100828421A CN200610082842A CN101075879B CN 101075879 B CN101075879 B CN 101075879B CN 2006100828421 A CN2006100828421 A CN 2006100828421A CN 200610082842 A CN200610082842 A CN 200610082842A CN 101075879 B CN101075879 B CN 101075879B
Authority
CN
China
Prior art keywords
download
file
receiving terminal
redirected
issue
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.)
Active
Application number
CN2006100828421A
Other languages
Chinese (zh)
Other versions
CN101075879A (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.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2006100828421A priority Critical patent/CN101075879B/en
Publication of CN101075879A publication Critical patent/CN101075879A/en
Application granted granted Critical
Publication of CN101075879B publication Critical patent/CN101075879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The method comprises: all files in the small file set are numbered to generate a seed node list; using a redirection technology to make download; the original download end sends the seed node list to the receiving end; the receiving end creates a receiving status list used for recording the receiving status of files; according to the receiving status list, the receiving end determines the serial number of the file to be downloaded; according to said serial number of files and the seed node, the receiving end initiates a download process; the receiving end updates the receiving status list, and re-determines the serial number of the files to be downloaded to download the un-downloaded files until getting all files.

Description

A kind of data download method
Technical field
The present invention relates to network data transmission technology, particularly relate to a kind of data download method.
Background technology
At present, propose a kind of peer-to-peer network (P2P) technology, can reach the purpose of resource-sharing and instant messaging.Fig. 1 is a typical schematic network structure based on the P2P technology.As shown in Figure 1, this network comprises information index server and N user side.Wherein, the information index server is used for the essential information of recording user end, like: online or information off-line, ID number etc.Each user side all has good friend's customer group, has all set up good friend's annexation between each user side in this user side and the good friend's customer group, can carry out mutual, such as: chat, make an announcement, transfer files or small documents set etc.
Wherein, the small documents set is a kind of set of being made up of the smaller file of a plurality of data volumes.Such as the digital photo album formed by the great amount of images file, or the CD that forms by a large amount of mp3 files.An image file or a mp3 file are generally smaller, be generally a few K bytes~a few M bytes, but the data total amount of digital photo album or CD are bigger, can be tens G bytes, even up to a hundred G bytes.
When certain user side will be shared the user side of giving good friend's customer group with small documents set, generally be directly said small documents to be gathered all user sides that send to good friend's customer group successively.The user side that the small documents set is provided described here is also referred to as downloads end, and the user side of good friend's customer group then is called good friend's user side.If good friend's user side is many, when the total data volume of small documents set was bigger, the download load of downloading end was just bigger, and needed the long time of cost could be with small documents set download to good friend's user side.
This shows in the prior art, also do not have a kind of data download method, not only can the small documents set be downloaded apace and give good friend's user side, and can reduce the download load of downloading end.Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of data download method, not only can the small documents set be downloaded apace and give good friend's user side, and can reduce the download load of downloading end.In order to achieve the above object, the technical scheme of the present invention's proposition is:
A kind of data download method is provided with the seed node table, is used for log file numbering and the corresponding good friend's user side that has this document ID number, and this method may further comprise the steps:
A, former download end send to receiving terminal with the seed node table, and receiving terminal is created the accepting state table that is used for the log file accepting state;
B, receiving terminal confirm to desire the file in download numbering according to the accepting state table, and initiate to download flow process according to desiring file in download numbering and seed node table, obtain said desire file in download numbering corresponding file;
C, receiving terminal upgrade the accepting state table, and return step b, until the All Files that obtains the small documents set.
Preferably, the said download flow process of step b is:
X1, receiving terminal are downloaded end to this and are sent the file downloading request message that carries desire file in download numbering;
X2, this download end judge whether that according to self downloading task queue table and seed node table needs are redirected, if desired, then hold according to definite being redirected of self seed node table, and execution in step X3; Otherwise, execution in step X4;
X3, receiving terminal send the file downloading request message that carries desire file in download numbering to being redirected end; Be redirected end and judge self whether there is said desire file in download numbering corresponding file; If exist; Then said desire file in download numbering corresponding file is arranged in self and downloads in the formation, send to receiving terminal, again execution in step c; Otherwise, execution in step X5;
X4, this download end are arranged in self with said desire file in download numbering corresponding file and download in the formation, send to receiving terminal, again execution in step c;
X5, be redirected end and return no file in download response message to receiving terminal, receiving terminal sends to former download end and carries the file downloading request message of desiring the file in download numbering, and receives said desire file in download and number corresponding file, execution in step c again.
Preferably, when the issue that the small documents set is provided is at first held when online,
Step a and step b download former download end described in the flow process and are the issue end;
Confirm that step b downloads method that this download is held described in the flow process and is: receiving terminal sends to the information index server for ID number with the corresponding good friend's user side of desire file in download numbering in the seed node table and carries out on-line filtration; Obtain online good friend's user side ID number, receiving terminal is confirmed this download user end again from said online good friend's user side.
Preferably, said receiving terminal confirms that from online good friend's user side this method of downloading end is:
Receiving terminal is confirmed this download user end at random from online good friend's user side; Perhaps,
Receiving terminal online good friend's user side that data transmission bauds is the fastest is downloaded end as this.
Preferably, further comprise before the said step a: the issue end sends to receiving terminal shares notification message, and receiving terminal sends downloading request message to the issue end again.
Preferably, the said receiving terminal of step X5 sends the file downloading request message and receives between the file to the issue end and further comprises:
The issue end group need to judge whether redirected in self downloading task queue table and seed node table; If desired; Then based on the definite end that is redirected of self seed node table, receiving terminal sends the file downloading request message that carries desire download reference number of a document to being redirected user side, is redirected user side and judges self whether to exist said desire to download the reference number of a document corresponding file; If exist, then said desire download reference number of a document corresponding file is arranged in and self downloads in the formation; Otherwise the issue end is arranged in self with said desire download reference number of a document corresponding file and downloads in the formation.
Preferably, the said receiving terminal of step c upgrades the accepting state table and returns between the step b and further comprises:
Receiving terminal will be the file in download numbering report the issue end, the issue end is numbered more new seed node table according to file in download;
The said redirected end of step X5 returns no file in download response message and receiving terminal to receiving terminal and sends between the file downloading request message to the issue end and further comprise:
The reference number of a document that redirected end will not downloaded file reports the issue end, and the issue end group is in not downloading more new seed node table of reference number of a document.
Preferably, when at first the issue end off-line of small documents set being provided,
In the said former download end of step a, the said download flow process of step b this downloads end and former download end all is pseudo-issue end;
Further comprise before the said step a:
Receiving terminal obtains issue from the information index server and holds prior good friend's user side of preserving ID number, and receiving terminal is held based on ID number definite pseudo-issue of good friend's user side again, holds to the puppet issue and sends downloading request message.
Preferably, the said redirected end of step X5 returns no file in download response message and receiving terminal to receiving terminal and sends between the file downloading request message to puppet issue end and further comprise:
The receiving terminal not reference number of a document of file in download reports the pseudo-end of issuing, and pseudo-issue end basis not file in download is numbered more new seed node table;
The said receiving terminal of step c upgrades the accepting state table and returns between the step b and further comprises:
Receiving terminal will be downloaded reference number of a document and report pseudo-issue end, and pseudo-issue end group is in downloading more new seed node table of reference number of a document.
Preferably, the said method that needs to be redirected that judges whether is:
Whether busy according to the downloading task number judgment self in self downloading task queue table, if busy, judge whether to exist redirected user side according to the seed node table again, be redirected end if exist, then being judged as needs to be redirected; Otherwise, be judged as and need not to be redirected.
In sum, a kind of data download method that the present invention proposes, its advantage is:
(1) downloading the end request when receiving terminal to this downloads when desiring file in download numbering corresponding file; This downloads end can directly send to receiving terminal with this document; Also can file be sent to receiving terminal through being redirected end; This can reduce this load of downloading end, makes full use of the redirected end of having downloaded file, improves speed of download.
(2) issue end will comprise that the information of good friend's user side ID number is published on the information index server; When issue end off-line; Receiving terminal can obtain good friend's user side ID number from the information index server; And the good friend's user side that will download file downloads as puppet issue end, thereby can guarantee issue end off-line the time, receiving terminal still can be downloaded the small documents set that the issue end is shared.
(3) because the All Files in the small documents set is numbered independently, when receiving terminal receives some files, just can use this document, needn't download complete small documents set by the time and just begin to use, this can satisfy the demand that the user in time experiences.
Description of drawings
Fig. 1 is typically based on the technological schematic network structure of P2P;
Fig. 2 is the present invention program's flow chart;
Fig. 3 is the schematic network structure of embodiment one;
Fig. 4 is a flow chart of using the present invention program's embodiment one;
Fig. 5 is the schematic network structure of embodiment two;
Fig. 6 is a flow chart of using the present invention program's embodiment two.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, the present invention is done to describe in detail further below in conjunction with accompanying drawing and specific embodiment.
Basic thought of the present invention is: all small data file are numbered, and utilize redirecting technique that file is downloaded to receiving terminal.
Fig. 2 is a flow chart of the present invention.Among the present invention, provide the user side of small documents set to be the issue end at first, be good friend's user side with the issue end has good friend's annexation, good friend's user side can be downloaded the small documents set of being shared by the issue end.When some good friend's user sides needed file in download, this good friend's user side was a receiving terminal, and what file was provided then is former download end.When the issue end was online, former download end described here was the issue end; When issue end off-line, described former download end is pseudo-issue end.That is to say that when issue end off-line, good friend's user side of having downloaded the small documents set just can serve as the issue end, the receiving terminal of downloading to request provides described small documents set.
As shown in Figure 2, receiving terminal realizes that the method for downloading the small documents set may further comprise the steps among the present invention:
Step 201: former download end sends to receiving terminal with the seed node table.
Among the present invention, issue end at first need be numbered the All Files in the small documents set, and create the seed node table before being shared the small documents set to good friend's user side, and promptly good friend's user side ID number of this document is numbered and had to log file.The described former download end of this step is the former download end that has had the seed node table.
Step 202: receiving terminal is created the accepting state table that is used for the log file accepting state.
Step 203: receiving terminal confirms to desire the file in download numbering according to the accepting state table, and initiates to download flow process according to desiring file in download numbering and seed node table, obtains said desire file in download numbering corresponding file.
Step 204~step 205: receiving terminal upgrades the accepting state table, and judges whether to download the All Files in the complete primary school file set, if then withdraw from this flow process; Otherwise, return step 203.
Among the present invention, in the small documents set a plurality of files are arranged, not necessarily all download to receiving terminal, also can download to receiving terminal by the good friend's user side that has this document by former download end.That is to say that when receiving terminal begins to download certain file, can be earlier from a plurality of good friend's user sides that have this document, confirm a user side of downloading current file, promptly this downloads end, downloads end to the receiving terminal file in download by this again.Certainly, in the practical application, also can from good friend's user side, not confirm this and download end, and directly certain user side downloaded end as this.Such as, during issue end off-line, can directly puppet issue end be downloaded end as this.
Download flow process described in the present invention is to adopt the download flow process of redirecting technique; That is: downloading the end request when receiving terminal to this downloads when desiring file in download numbering corresponding file; This is downloaded end and can be redirected with the record case of seed node table according to self download situation, and receiving terminal can obtain file after redirected.Adopt the download flow process of redirecting technique a lot, download flow process of the present invention can be expressed as:
X1, receiving terminal are downloaded end to this and are sent the file downloading request message that carries desire file in download numbering;
X2, this download are held according to self downloading task queue table and seed node table and are judged whether that needs are redirected, if desired, then hold according to definite being redirected of self seed node table, and execution in step X3; Otherwise, execution in step X4;
Among the present invention,, bear the user side of downloading task and will create a downloading task queue table, be used for writing down the situation of download in order to control the download load of user side.When receiving download request as this certain user side of downloading end; Can determine whether to need to be redirected based on downloading task number in the downloading task queue table and seed node table; Be redirected if desired, then this is downloaded end and is not born this downloading task, and bears by being redirected end.Redirected end described here also has good friend's user side of said desire file in download numbering corresponding file.
X3, receiving terminal send the file downloading request message that carries desire file in download numbering to being redirected end; Be redirected end and judge self whether there is said desire file in download numbering corresponding file; If exist; Then said desire file in download numbering corresponding file is arranged in self and downloads in the formation, send to receiving terminal, withdraw from this flow process again; Otherwise, execution in step X5;
Among the present invention,, then need bear this downloading task if be redirected the file that end has said desire file in download numbering; If do not have the file of said desire file in download numbering, then return no file in download response message to receiving terminal.That is to say that redirected end can not carry out being redirected the second time again.
In the practical application, can stipulate that also redirected end carries out limited number of time again and is redirected.Certainly, when redirected end was redirected once more, the situation that need avoid causing circulating redirected took place.Such as: judge whether that when being redirected to hold needs are redirected once more according to self downloading task queue table and seed node table; If desired; Then, judge again whether be redirected end the second time is to be redirected the user side to self last time according to the definite end that is redirected for the second time of self seed node table, if; Then confirm to be redirected a second time end again, until not be redirected last time to self user side identical till.
X4, this download end are arranged in self with said desire file in download numbering corresponding file and download in the formation, send to receiving terminal, withdraw from this flow process again;
X5, be redirected end and return no file in download response message to receiving terminal, receiving terminal sends to former download end and carries the file downloading request message of desiring the file in download numbering, and receives said desire file in download and number corresponding file, withdraws from this flow process again.
For the present invention program is described better, with two preferred embodiments the method that realizes that the small documents set is downloaded is described below.
Embodiment one
Fig. 3 has shown the schematic network structure of present embodiment.The 26S Proteasome Structure and Function of Fig. 3 and Fig. 1 is identical; Just in order to narrate conveniently; The user side that small documents set is provided is called the issue end, the user side in the issue end good friend customer group is called good friend's user side, and good friend's user side that one of them will file in download is called receiving terminal.
In the present embodiment, the issue end is in line states, and 100 good friend's user sides are arranged; In the small documents set 1000 files are arranged.The issue end is numbered 1000 files earlier, and creates the seed node table, comprises ID number tabulation of reference number of a document and the good friend's user side that has this document.The issue end is created after the seed node table, and the ID number tabulation of good friend's user side that has this document in the seed node table is for empty.After certain good friend's user side had been downloaded some files, the issue end just can be recorded in this good friend's user side in the seed node table.Suppose that receiving terminal is before the issue end sends downloading request message in the present embodiment, issue end seed node table is shown in table one.
Figure S06182842120060620D000081
Table one
Fig. 4 is the flow chart of present embodiment.As shown in Figure 4, present embodiment realizes that the method that data are downloaded may further comprise the steps:
Step 401: the issue end sends to receiving terminal shares notification message, and receiving terminal sends downloading request message to the issue end again.
Step 402: the issue end sends to receiving terminal with the seed node table, and receiving terminal is created the accepting state table that is used for the log file accepting state.
Receiving terminal is created the accepting state table, and the corresponding accepting state initial value of All Files numbering is set is " receiving ".Accepting state table in the present embodiment is shown in table two.
Reference number of a document Accepting state
?1 Do not receive
?2 Do not receive
Do not receive
?1000 Do not receive
Table two
Step 403: receiving terminal is confirmed desire download reference number of a document based on the accepting state table.
In the practical application, receiving terminal can be born one or more downloading task simultaneously, so when receiving terminal asks to download for the first time, can confirm one or more simultaneously and desire the file in download numbering.Such as: 1~5 reference number of a document is confirmed as desire file in download numbering.After this, receiving terminal can confirm to desire the file in download numbering according to self downloading number.Successfully receiving reference number of a document such as: receiving terminal is 1 file, and reference number of a document be 2~5 file just in downloading process, be that 6 file is confirmed as and desired the file in download numbering just with reference number of a document, and and the like.
Step 404: receiving terminal will be desired the corresponding good friend's user side of file in download numbering and send to the information index server for ID number and carry out on-line filtration, obtain online good friend's user side ID number.
In the practical application, some good friend's user side is the possibility off-line after downloading the complete primary school file set, and on the information index server, registers.The information index server receives after good friend's user side ID number of transmission; Just can judge that which good friend's user side is in line states according to registration situation; Which good friend's user side is in off-line state; And good friend's user side that will be in line states returns to receiving terminal ID number, promptly carries out on-line filtration.
Step 405: receiving terminal online good friend's user side that data transmission bauds is the fastest is downloaded end as this.
In the practical application; When receiving terminal has just begun to download the file in the small documents set; Also do not carry out alternately with any one good friend's user side, promptly good friend's user side all is 0 to the speed of receiving terminal transmission data, can select online good friend's user side to download end as this at random.But; After receiving terminal has successfully been downloaded a file, prepare to download other not during file in download, owing to carried out alternately with online good friend's user side; Speed that can the detected transmission data, and will transmit the fastest online good friend's user side of data speed and download end as this.
Step 406: receiving terminal is downloaded end to this and is sent the file downloading request message that carries desire file in download numbering.
Step 407~step 408: this is downloaded to hold according to self downloading task queue table and seed node table and judges whether that needs are redirected; If desired; Then confirm to be redirected end according to self seed node table, and will be redirected ID number of end and send to receiving terminal, execution in step 409 again; Otherwise, execution in step 411.
In this step; This download end judges whether that the method that needs to be redirected be: whether this download holds according to the downloading task number judgment self in self downloading task queue table busy; If it is busy; Judge whether to exist redirected user side according to the seed node table again, be redirected end if exist, then being judged as needs to be redirected; Otherwise, be judged as and need not to be redirected.
In the practical application,, influence speed of download, generally need stipulate this and download the maximum that end is born the downloading task number for fear of bearing excessive download load.If this downloads the maximum that the downloading task number of holding in the downloading task queue table has reached regulation; Then this downloads the end judgement certainly as busy condition; Be not suitable for continuing to carry more downloading task, need this downloading task be redirected the good friend's user side to other.This is downloaded end and determines whether to exist redirected end according to the seed node table again; Promptly inquire about the seed node table and desire whether also to exist in the corresponding good friend's user side tabulation of file in download numbering other the good friend's user side that has this document ID number; If exist; Then confirm good friend's user side as redirected end, and the notice receiving terminal.
Step 409: receiving terminal carries the file downloading request message of desire download reference number of a document for ID number to redirected end transmission based on redirected end.
Step 410~step 411: be redirected end and judge self whether there is said desire file in download numbering corresponding file; If exist; Then said desire file in download numbering corresponding file is arranged in self and downloads in the formation, send to receiving terminal, execution in step 415 again; Otherwise, execution in step 413.
Step 412: this download end is arranged in self with said desire file in download numbering corresponding file and downloads in the formation, sends to receiving terminal, and execution in step 415 again.
Step 413: be redirected end and return to receiving terminal and do not have the file of download response message, and will not have the reference number of a document of downloading file and report the issue end, issue end group in not downloading more new seed node table of reference number of a document.
Do not desire file in download numbering corresponding file owing to be redirected end, the said not file in download numbering of this step is exactly said desire file in download numbering.When the issue termination is received when being redirected the not file in download numbering that end reports more new seed node table, that is: redirected end ID number corresponding deletion from the ID number tabulation of good friend's user side that has this document of file in download numbering.
Step 414: receiving terminal sends to the issue end and carries the file downloading request message of desiring the file in download numbering, and receives said desire file in download numbering corresponding file.
In the practical application,, can directly download to receiving terminal desiring file in download numbering corresponding file because there are all files in the small documents set in the issue end.Carry excessive downloading task for fear of the issue end, the issue end also can be redirected the good friend's user side to other with this downloading task once more, that is:
When the issue termination is received the file downloading request message; The issue end group need to judge whether redirected in self downloading task queue table and seed node table; If desired; Then based on the definite end that is redirected of self seed node table, receiving terminal sends the file downloading request message that carries desire download reference number of a document to being redirected user side, is redirected user side and judges self whether to exist said desire to download the reference number of a document corresponding file; If exist, then said desire download reference number of a document corresponding file is arranged in and self downloads in the formation; Otherwise the issue end is arranged in self with said desire download reference number of a document corresponding file and downloads in the formation.
Issue end described here need to judge whether redirected method similar with the reorientation method described in step 407~step 408, repeats no more here.
Step 415: receiving terminal upgrades the accepting state table, changes to and downloads desiring the corresponding accepting state of file in download numbering in self accepting state table.
Step 416: receiving terminal will be the reference number of a document of file in download report the issue end, the issue end is numbered more new seed node table according to file in download.
The reference number of a document of the described file in download of this step is exactly said desire file in download numbering in fact; Because desiring the file in download numbering, this successfully downloads; And change at the accepting state table and to download, so receiving terminal reports the reference number of a document of file in download of being of issue end.
When the issue termination is received when numbering of file in download that reports, new seed node table more that is: adds ID number of receiving terminal in the corresponding ID number tabulation of the good friend's user side that has this document of file in download numbering to.
Step 417: receiving terminal judges whether to download all files in the small documents set, if then withdraw from this flow process; Otherwise, return step 403.
When only having described good friend's user side as receiving terminal, downloads present embodiment the method for small documents set.In the practical application; Have a plurality of good friend's user sides and download the small documents set simultaneously; Then after some receiving terminals successfully receive one or more file; Just can be used as this download end and the file that has received is provided, thereby can improve speed of download greatly to other receiving terminal.
Embodiment two
Fig. 5 is the schematic network structure of present embodiment.The 26S Proteasome Structure and Function of Fig. 5 and Fig. 1 is also identical; Just in order to narrate conveniently; With being in line states and existing the user side of small documents set to be called pseudo-issue end; The user side that will be in good friend's customer group of former issue end of off-line state is called good friend's user side, and good friend's user side that one of them will file in download is called receiving terminal.Certainly, puppet issue end described here also is good friend's user side of former issue end.
In the present embodiment, before issue end off-line, on the information index server, issued information, said releasing news ID number that comprises good friend's user side.In the present embodiment, pseudo-issue end not only has the All Files in the small documents set, also has the seed node table of log file distribution situation.
Fig. 6 is the flow chart of present embodiment.As shown in Figure 6, present embodiment realizes that the method that data are downloaded may further comprise the steps:
Step 601: receiving terminal obtains from the information index server and issues the prior good friend's user side preserved of end ID number, and an ID number definite puppet issue held based on good friend's user side again, and holds the transmission downloading request message to the puppet issue.
In the practical application; Because issue end will comprise the information of good friend's user side ID number and be published to the information index server before off-line; No matter whether receiving terminal is online before the issue end off-line; After issue end off-line, receiving terminal can be inquired about issue end information releasing in the information index server, and obtains good friend's user side ID number.Then, receiving terminal is confirmed a pseudo-issue end again from ID number of described good friend's user side.
Confirm pseudo-issue end method can for: the ID of all good friend's user sides that receiving terminal will obtain earlier sends to the information index server and carries out on-line filtration, obtains online good friend's user side; Receiving terminal sends seed inquiry request message to online good friend's user side more successively, has the seed node table up to certain online good friend's user side, has promptly downloaded small data file, and so, receiving terminal is just issued end with this good friend's user side as puppet.The method of on-line filtration described here is identical with on-line filtration method among the embodiment one, repeats no more here.
Step 602: pseudo-issue end sends to receiving terminal with the seed node table, and receiving terminal is created the accepting state table that is used for the log file accepting state.
Step 603: receiving terminal is confirmed desire file in download numbering according to the accepting state table, and sends the file downloading request message that carries desire file in download numbering to puppet issue end.
Step 604~step 605: pseudo-issue is held according to self downloading task queue table and seed node table and is judged whether that needs are redirected; If desired; Then confirm to be redirected end according to self seed node table, and will be redirected ID number of end and send to receiving terminal, execution in step 606 again; Otherwise, execution in step 609.
Step 604 described here~step 605 is similar with the step 407~step 408 among the embodiment, and its difference only is that present embodiment directly by the judgement of puppet issue end, repeats no more here.
Step 606: receiving terminal carries the file downloading request message of desire download reference number of a document for ID number to redirected end transmission based on redirected end.
Step 607~step 608: be redirected end and judge self whether there is said desire file in download numbering corresponding file; If exist; Then said desire file in download numbering corresponding file is arranged in self and downloads in the formation, send to receiving terminal, execution in step 612 again; Otherwise, execution in step 610.
Step 609: pseudo-issue end is arranged in self with said desire file in download numbering corresponding file and downloads in the formation, sends to receiving terminal, and execution in step 612 again.
Step 610: be redirected end and return no file in download response message to receiving terminal, the reference number of a document that receiving terminal will not have file in download again reports the pseudo-end of issuing, and pseudo-issue end basis not file in download is numbered more new seed node table.
Step 611: receiving terminal sends to puppet issue end and carries the file downloading request message of desiring the file in download numbering, and receives said desire file in download numbering corresponding file.
Step 612: receiving terminal upgrades the accepting state table, changes to and downloads desiring the corresponding accepting state of file in download numbering in self accepting state table.
Step 613: the receiving terminal reference number of a document of file in download reports the pseudo-end of issuing, and pseudo-issue end basis file in download is numbered more new seed node table.
Step 614: receiving terminal judges whether to download files all in the complete primary school file set, if then withdraw from this flow process; Otherwise, return step 603.
In the practical application; If pseudo-issue end self is not downloaded all files in the complete primary school file set; Then receiving terminal can be confirmed new puppet issue end again from online good friend's user side, and adopts the method for present embodiment to download, and the file in the small documents set is all downloaded.
Use the present embodiment scheme; Receiving terminal can be under the situation of issue end off-line; Can from the information index server, obtain good friend's user side ID, and online good friend's user side that will be loaded with the small documents set down is as puppet issue end, through puppet issue end file in download; Thereby reach under issue end off-line case, receiving terminal still can obtain to issue the purpose of holding the small documents set that provides.
In sum, more than being merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. a data download method is characterized in that, the seed node table is set, and is used for log file numbering and the corresponding good friend's user side that has this document ID number, and this method may further comprise the steps:
A, former download end send to receiving terminal with the seed node table, and receiving terminal is created the accepting state table that is used for the log file accepting state;
B, receiving terminal confirm to desire the file in download numbering according to the accepting state table, and initiate to download flow process according to desiring file in download numbering and seed node table, obtain said desire file in download numbering corresponding file;
C, receiving terminal upgrade the accepting state table, and return step b, until the All Files that obtains the small documents set;
The said download flow process of step b is:
X1, receiving terminal are downloaded end to this and are sent the file downloading request message that carries desire file in download numbering;
X2, this download end judge whether that according to self downloading task queue table and seed node table needs are redirected, if desired, then hold according to definite being redirected of self seed node table, and execution in step X3; Otherwise, execution in step X4;
X3, receiving terminal send the file downloading request message that carries desire file in download numbering to being redirected end; Be redirected end and judge self whether there is said desire file in download numbering corresponding file; If exist; Then said desire file in download numbering corresponding file is arranged in self and downloads in the formation, send to receiving terminal, again execution in step c; Otherwise, execution in step X5;
X4, this download end are arranged in self with said desire file in download numbering corresponding file and download in the formation, send to receiving terminal, again execution in step c;
X5, be redirected end and return no file in download response message to receiving terminal, receiving terminal sends to former download end and carries the file downloading request message of desiring the file in download numbering, and receives said desire file in download and number corresponding file, execution in step c again.
2. method according to claim 1 is characterized in that, when the issue that the small documents set is provided is at first held when online,
Step a and step b download former download end described in the flow process and are the issue end;
Confirm that step b downloads method that this download is held described in the flow process and is: receiving terminal sends to the information index server for ID number with the corresponding good friend's user side of desire file in download numbering in the seed node table and carries out on-line filtration; Obtain online good friend's user side ID number, receiving terminal is confirmed this download user end again from said online good friend's user side.
3. method according to claim 2 is characterized in that, said receiving terminal confirms that from online good friend's user side this method of downloading end is:
Receiving terminal is confirmed this download user end at random from online good friend's user side; Perhaps,
Receiving terminal online good friend's user side that data transmission bauds is the fastest is downloaded end as this.
4. based on the described method of claim 2, it is characterized in that, further comprise before the said step a: the issue end sends to receiving terminal shares notification message, and receiving terminal sends downloading request message to the issue end again.
5. method according to claim 2 is characterized in that, the said receiving terminal of step X5 sends the file downloading request message and receives between the file to the issue end and further comprises:
The issue end group need to judge whether redirected in self downloading task queue table and seed node table; If desired; Then based on the definite end that is redirected of self seed node table, receiving terminal sends the file downloading request message that carries desire download reference number of a document to being redirected user side, is redirected user side and judges self whether to exist said desire to download the reference number of a document corresponding file; If exist, then said desire download reference number of a document corresponding file is arranged in and self downloads in the formation; Otherwise the issue end is arranged in self with said desire download reference number of a document corresponding file and downloads in the formation.
6. method according to claim 2 is characterized in that, the said receiving terminal of step c upgrades the accepting state table and returns between the step b and further comprises:
Receiving terminal will be the file in download numbering report the issue end, the issue end is numbered more new seed node table according to file in download;
The said redirected end of step X5 returns no file in download response message and receiving terminal to receiving terminal and sends between the file downloading request message to the issue end and further comprise:
The reference number of a document that redirected end will not downloaded file reports the issue end, and the issue end group is in not downloading more new seed node table of reference number of a document.
7. method according to claim 1 is characterized in that, when at first the issue end off-line of small documents set being provided,
In the said former download end of step a, the said download flow process of step b this downloads end and former download end all is pseudo-issue end;
Further comprise before the said step a:
Receiving terminal obtains issue from the information index server and holds prior good friend's user side of preserving ID number, and receiving terminal is held based on ID number definite pseudo-issue of good friend's user side again, holds to the puppet issue and sends downloading request message.
8. method according to claim 7 is characterized in that, the said redirected end of step X5 returns no file in download response message and receiving terminal to receiving terminal and sends between the file downloading request message to puppet issue end and further comprise:
The receiving terminal not reference number of a document of file in download reports the pseudo-end of issuing, and pseudo-issue end basis not file in download is numbered more new seed node table;
The said receiving terminal of step c upgrades the accepting state table and returns between the step b and further comprises:
Receiving terminal will be downloaded reference number of a document and report pseudo-issue end, and pseudo-issue end group is in downloading more new seed node table of reference number of a document.
9. according to each described method of claim 1 to 8, it is characterized in that the said method that needs to be redirected that judges whether is:
Whether busy according to the downloading task number judgment self in self downloading task queue table, if busy, judge whether to exist redirected user side according to the seed node table again, be redirected end if exist, then being judged as needs to be redirected; Otherwise, be judged as and need not to be redirected.
CN2006100828421A 2006-06-13 2006-06-13 Method for downloading data Active CN101075879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006100828421A CN101075879B (en) 2006-06-13 2006-06-13 Method for downloading data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006100828421A CN101075879B (en) 2006-06-13 2006-06-13 Method for downloading data

Publications (2)

Publication Number Publication Date
CN101075879A CN101075879A (en) 2007-11-21
CN101075879B true CN101075879B (en) 2012-04-25

Family

ID=38976713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006100828421A Active CN101075879B (en) 2006-06-13 2006-06-13 Method for downloading data

Country Status (1)

Country Link
CN (1) CN101075879B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170371B (en) * 2007-11-30 2010-12-29 中兴通讯股份有限公司 A client data request optimization method and system in P2P order
CN101459697B (en) * 2009-01-07 2012-01-04 清华大学 Access method and apparatus for shared document
CN102135872B (en) * 2010-01-22 2016-06-15 腾讯科技(深圳)有限公司 A kind of method and device configuring image at logging zone
CN101931633B (en) * 2010-09-29 2013-11-06 山东大学 Incremental synchronization method applied to intelligent mobile phone terminal
CN102469062B (en) * 2010-10-29 2014-05-07 北大方正集团有限公司 Data distributing method and device
CN102857403B (en) * 2011-06-30 2015-04-22 北京神州泰岳软件股份有限公司 Instant messaging client data sharing method and system
CN103970794B (en) * 2013-02-01 2017-11-28 联想(北京)有限公司 Data access method and data access device
CN103678535A (en) * 2013-12-02 2014-03-26 北京奇虎科技有限公司 Browser and downloading method thereof
CN105119816A (en) * 2015-09-16 2015-12-02 北京梅泰诺通信技术股份有限公司 Method and device for processing information sending state
CN105791436A (en) * 2016-04-28 2016-07-20 杭州亿方云网络科技有限公司 File synchronization system and synchronization method thereof
CN113347218A (en) * 2020-02-18 2021-09-03 北京沃东天骏信息技术有限公司 Module downloading method and device
CN111371878B (en) * 2020-02-28 2023-04-14 北京和利时系统集成有限公司 Information publishing method, ISCS (Internet service System), PIS (particle information System) and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710857A (en) * 2004-06-18 2005-12-21 千橡寰宇科技发展(北京)有限公司 Method and method for realizing document accelerated download
CN1731396A (en) * 2005-08-23 2006-02-08 萧学文 System and method for implementing network resource search by mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710857A (en) * 2004-06-18 2005-12-21 千橡寰宇科技发展(北京)有限公司 Method and method for realizing document accelerated download
CN1731396A (en) * 2005-08-23 2006-02-08 萧学文 System and method for implementing network resource search by mobile terminal

Also Published As

Publication number Publication date
CN101075879A (en) 2007-11-21

Similar Documents

Publication Publication Date Title
CN101075879B (en) Method for downloading data
US10320899B2 (en) Peer-to-peer communication of non-common data
JP5640649B2 (en) Data communication method and information processing apparatus
US8250171B2 (en) Content delivery apparatus, content delivery method, and content delivery program
CN105740337B (en) A kind of event fast matching method in distribution subscription system based on content
CN102859961B (en) There is the distributed video transcoding system of adaptive file process
CN107105050B (en) Storage and downloading method and system for service objects
CN101860493A (en) Method, server and system for distributing application server address for clients
CN107426258A (en) A kind of upload of image file and method for down loading and device
CN101406060A (en) Time-delay video downloading service by using P2P content distribution network
WO2007026443A1 (en) Content delivery method, content delivery server, communication terminal apparatus, and content delivery system
CN105681426B (en) Heterogeneous system
CN109194718A (en) A kind of block chain network and its method for scheduling task
CN101179392A (en) Method and system for uploading document
CN102624916A (en) Method, node manager and system for load balancing in cloud computing system
US20100191756A1 (en) Content delivery apparatus, content delivery method, and content delivery program
WO2005081453A1 (en) Nonstop service system using voting and, information updating and providing method in the same
CN103248674A (en) Shared file management method for cross-domain cloud platform
CN101170442B (en) Software online upgrade method and system
CN102164152A (en) Method and system for remotely processing files
CN111679918B (en) Message transmission method and device
JP2007272540A (en) Data distributing method and data distributing system
CN103002038A (en) Processing method and device for elastic load balancing
CN110012108A (en) Data copy storage method, method for down loading, cloud storage system and relevant apparatus
CN106657195A (en) Task processing method and relay device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151230

Address after: The South Road in Guangdong province Shenzhen city Fiyta building 518057 floor 5-10 Nanshan District high tech Zone

Patentee after: Shenzhen Tencent Computer System Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518044 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.