CN101075879A - Method for downloading data - Google Patents

Method for downloading data Download PDF

Info

Publication number
CN101075879A
CN101075879A CN 200610082842 CN200610082842A CN101075879A CN 101075879 A CN101075879 A CN 101075879A CN 200610082842 CN200610082842 CN 200610082842 CN 200610082842 A CN200610082842 A CN 200610082842A CN 101075879 A CN101075879 A CN 101075879A
Authority
CN
China
Prior art keywords
file
download
receiving terminal
numbering
redirected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200610082842
Other languages
Chinese (zh)
Other versions
CN101075879B (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

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, as: 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 share to the user side of good friend's customer group with the small documents set, generally be all user sides that directly described small documents set sent to successively good friend's customer group.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 needs the long time of cost the small documents set could be downloaded to good friend's user side.
This shows in the prior art, also do not have a kind of data download method, not only the small documents set can be downloaded the user side to the good friend rapidly, 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 the small documents set can be downloaded the user side to the good friend rapidly, 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 are determined the file to download numbering according to the accepting state table, and initiate to download flow process according to file to download numbering and seed node table, obtain file corresponding to described file to download numbering;
C, receiving terminal upgrade the accepting state table, and return step b, until obtain the All Files of small documents set.
Preferably, the described download flow process of step b is:
X1, receiving terminal send the file downloading request message that carries the file to download numbering to this downloading end;
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 described desire file in download numbering corresponding file, if exist, then described desire file in download numbering corresponding file being arranged in self downloads in the formation, send to receiving terminal, again execution in step c; Otherwise, execution in step X5;
X4, this downloading end are downloaded file arrangements corresponding to described file to download numbering in the formation at self, send to receiving terminal, again execution in step c;
X5, redirected end return no download file response message to receiving terminal, and receiving terminal sends the file downloading request message that carries the file to download numbering to former downloading end again, and receive the file of described file to download numbering correspondence, again execution in step c.
Preferably, when the publishing side that provides small documents to gather at first is online,
Former downloading end is publishing side described in step a and the step b download flow process;
Method that determining step b downloads this download end described in the flow process 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 determined this download user end again from described online good friend's user side.
Preferably, described receiving terminal determines that from online good friend's user side this method of downloading end is:
Receiving terminal is determined 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 as this downloading end.
Preferably, further comprise before the described step a: publishing side sends to receiving terminal shares notification message, and receiving terminal sends downloading request message to publishing side again.
Preferably, the described receiving terminal of step X5 further comprises between publishing side Transmit message downloading request message and reception file:
Publishing side judges whether that according to self downloading task queue table and seed node table needs are redirected, if need, then according to the definite end that is redirected of self seed node table, receiving terminal sends the file downloading request message that carries the file to download numbering to being redirected user side, be redirected user side and judge self whether there be file corresponding to described file to download numbering, if exist, then the file arrangements that described file to download numbering is corresponding self is being downloaded in the formation; Otherwise publishing side is downloaded file arrangements corresponding to described file to download numbering in the formation at self.
Preferably, the described receiving terminal of step c upgrades the accepting state table and returns between the step b and further comprises:
Receiving terminal reports publishing side with the downloaded file numbering, and publishing side is numbered more new seed node table according to downloaded file;
The described redirected end of step X5 returns no download file response message and receiving terminal further comprises to receiving terminal between publishing side Transmit message downloading request message:
The redirected end not reference number of a document of download file reports publishing side, and publishing side basis not download file is numbered more new seed node table.
Preferably, when providing the issue end off-line of small documents set at first,
This downloading end and former downloading end in the described former downloading end of step a, the described download flow process of step b all are pseudo-publishing side;
Further comprise before the described step a:
Receiving terminal obtains the prior good friend's user side preserved of publishing side ID number from the information index server, and receiving terminal is determined a pseudo-publishing side ID number according to good friend's user side again, sends downloading request message to pseudo-publishing side again.
Preferably, the described redirected end of step X5 returns no download file response message and receiving terminal further comprises to receiving terminal between pseudo-publishing side Transmit message downloading request message:
The receiving terminal not reference number of a document of download file reports pseudo-publishing side, and pseudo-publishing side basis not download file is numbered more new seed node table;
The described receiving terminal of step c upgrades the accepting state table and returns between the step b and further comprises:
Receiving terminal reports pseudo-publishing side with the downloaded file numbering, and pseudo-publishing side is numbered more new seed node table according to downloaded file.
Preferably, the described method that needs to be redirected that judges whether is:
Judge according to the downloading task number in self downloading task queue table whether self is busy, if busy, judges whether to exist redirected user side according to the seed node table again, is 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) when receiving terminal is downloaded the file of file to download numbering correspondence to this downloading end request, this downloading end can directly send to receiving terminal with this document, also can file be sent to receiving terminal by being redirected end, this can reduce the load of this downloading end, take full advantage of the redirected end of having downloaded file, improve 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 is downloaded as puppet issue end, thereby in the time of can guaranteeing issue end off-line, 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 by the time download complete small documents set and just begin to use, this can satisfy the demand that the user in time experiences.
Description of drawings
Fig. 1 is typical schematic network structure based on the P2P technology;
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 purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
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, it is publishing side that the user side of small documents set is provided at first, is good friend's user side with publishing side has good friend's annexation, and good friend's user side can be downloaded the small documents set of being shared by publishing side.When some good friend's user sides needed download file, this good friend's user side was receiving terminal, and what file was provided then is former downloading end.When publishing side was online, former downloading end described here was publishing side; When the publishing side off-line, described former downloading end is pseudo-publishing side.That is to say that when the publishing side off-line, good friend's user side of having downloaded the small documents set just can serve as publishing side, 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, publishing side at first needed the All Files in the small documents set is numbered, and creates the seed node table before small documents set is shared to good friend's user side, i.e. log file numbering and have good friend's user side ID number of this document.The described former downloading end of this step is the former downloading 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 is determined the file to download numbering according to the accepting state table, and initiates to download flow process according to file to download numbering and seed node table, obtains file corresponding to described file to download numbering.
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 downloaded to receiving terminal by former downloading end, also can be downloaded to receiving terminal by the good friend's user side that has this document.That is to say, when receiving terminal begins to download certain file, can be earlier from a plurality of good friend's user sides that have this document, determine a user side of downloading current file, i.e. this downloading end, again by this downloading end to the receiving terminal download file.Certainly, in the practical application, also can from good friend's user side, not determine this download end, and directly certain user side be downloaded end as this.Such as, during the publishing side off-line, can be directly with pseudo-publishing side as this downloading end.
Download flow process described in the present invention is to adopt the download flow process of redirecting technique, that is: when receiving terminal is downloaded the file of file to download numbering correspondence to this downloading end request, this downloading end can be redirected according to self download situation and the record case of seed node table, and receiving terminal can obtain file after being 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 send the file downloading request message that carries the file to download numbering to this downloading end;
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, in order to control the download load of user side, the user side of bearing downloading task will create a downloading task queue table, be used for recording the situation of download.When certain user side as this downloading end receives download request, can determine whether that needs are redirected according to downloading task number in the downloading task queue table and seed node table, if need to be redirected, then this downloading end is not born this downloading task, and bears by being redirected end.Redirected end described here also has good friend's user side of file corresponding to described file to download numbering.
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 described desire file in download numbering corresponding file, if exist, then described desire file in download numbering corresponding file being arranged in self downloads in the formation, send to receiving terminal, withdraw from this flow process again; Otherwise, execution in step X5;
Among the present invention, if be redirected the file that end has described file to download numbering, then need bear this downloading task; If do not have the file of described file to download numbering, then return no download file 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 according to self downloading task queue table and seed node table needs are redirected again, if need, then according to the definite end that is redirected for the second time of self seed node table, judge again whether be redirected for the second time end is to be redirected the user side to self last time, if, then redefine and be redirected end a second time, until not be redirected last time identical to self user side till.
X4, this downloading end are downloaded file arrangements corresponding to described file to download numbering in the formation at self, send to receiving terminal, withdraw from this flow process again;
X5, redirected end return no download file response message to receiving terminal, and receiving terminal sends the file downloading request message that carries the file to download numbering to former downloading end again, and receive the file of described file to download numbering correspondence, withdraw 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.Publishing side 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.Publishing side creates after the seed node table, has the ID number tabulation of good friend's user side of this document in the seed node table for empty.After certain good friend's user side had been downloaded some files, publishing side just can be recorded in this good friend's user side in the seed node table.Before supposing that receiving terminal sends downloading request message to publishing side in the present embodiment, publishing side seed node table as shown in Table 1.
Reference number of a document Good friend's user side ID number that has this document
1 021 010 005
2 033 012 021
1000
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: publishing side sends to receiving terminal shares notification message, and receiving terminal sends downloading request message to publishing side 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 creates the accepting state table, and accepting state initial value corresponding to All Files numbering is set is " receiving ".Accepting state table in the present embodiment as shown in Table 2.
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 determined the file to download numbering according to 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 determine one or more desire file in download numberings simultaneously.Such as: the reference number of a document with 1~5 is defined as desiring the file in download numbering.After this, receiving terminal can determine 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, just be that 6 file is defined as the file to download numbering with reference number of a document, 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 registers at the information index server.The information index server receives after good friend's user side ID number of transmission, just can judge 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 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 download file, owing to carried out alternately with online good friend's user side, speed that can the detected transmission data, and online good friend's user side that the transmission of data is fastest is as this downloading end.
Step 406: receiving terminal sends the file downloading request message that carries the file to download numbering to this downloading end.
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 determine 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: this is downloaded to hold according to the downloading task number in self downloading task queue table and judges whether self is 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, for fear of bearing excessive download load, affect speed of download, need to stipulate that generally this downloading end bears the maximum of downloading task number.If the downloading task number in this downloading end downloading task queue table has reached the maximum of regulation, then this downloading end is judged certainly as busy condition, be not suitable for continuing the more downloading task of carrying, this downloading task need to be redirected the good friend's user side to other.This downloading end determines whether to exist to be redirected according to the seed node table again and holds, namely inquire about the good friend's user side that has this document ID number that whether also has other in good friend's user side tabulation corresponding to seed node table file to download numbering, if exist, then determine good friend's user side as redirected end, and the notice receiving terminal.
Step 409: the receiving terminal basis is redirected end carries the file to download numbering for ID number to redirected end transmission file downloading request message.
Step 410~step 411: be redirected end and judge self whether there is described desire file in download numbering corresponding file, if exist, then described 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 described 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 no download file response message to receiving terminal, and the reference number of a document that will not have a download file reports publishing side, publishing side basis not download file is numbered more new seed node table.
Do not desire file in download numbering corresponding file owing to be redirected end, the described not file in download numbering of this step is exactly described desire file in download numbering.When publishing side receives when being redirected the not download file numbering that end reports more new seed node table, that is: redirected end ID number deletion from the ID number tabulation of good friend's user side that has this document corresponding to download file numbering.
Step 414: receiving terminal sends the file downloading request message that carries the file to download numbering to publishing side again, and receives file corresponding to described file to download numbering.
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.For fear of the excessive downloading task of publishing side carrying, publishing side also can be redirected this downloading task the good friend's user side to other again, that is:
When publishing side receives the file downloading request message, publishing side judges whether that according to self downloading task queue table and seed node table needs are redirected, if need, then according to the definite end that is redirected of self seed node table, receiving terminal sends the file downloading request message that carries the file to download numbering to being redirected user side, be redirected user side and judge self whether there be file corresponding to described file to download numbering, if exist, then the file arrangements that described file to download numbering is corresponding self is being downloaded in the formation; Otherwise publishing side is downloaded file arrangements corresponding to described file to download numbering in the formation at self.
Issue end described here need to judge whether redirected method similar to the reorientation method described in step 407~step 408, repeats no more herein.
Step 415: receiving terminal upgrades the accepting state table, accepting state corresponding to file to download numbering in self accepting state table is changed to download.
Step 416: receiving terminal reports publishing side with the reference number of a document of downloaded file, and publishing side is numbered more new seed node table according to downloaded file.
The reference number of a document of the described downloaded file of this step is exactly described file to download numbering in fact, because this file to download numbering is successfully downloaded, and change at the accepting state table and to download, so what receiving terminal reported publishing side is the reference number of a document of downloaded file.
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.
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 provide the file that has received, 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, to be in line states and exist the user side of small documents set to be called pseudo-publishing side, the user side that will be in good friend's customer group of former publishing side of off-line state is called good friend's user side, and good friend's user side that one of them will download file is called receiving terminal.Certainly, pseudo-publishing side described here also is good friend's user side of former publishing side.
In the present embodiment, before issue end off-line, on the information index server, issued information, described releasing news ID number that comprises good friend's user side.In the present embodiment, pseudo-publishing side 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 the prior good friend's user side preserved of publishing side ID number from the information index server, determines a pseudo-publishing side ID number according to good friend's user side again, and sends downloading request message to pseudo-publishing side.
In the practical application, because publishing side 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 publishing side off-line, after the publishing side off-line, receiving terminal can be inquired about the information of publishing side issue in the information index server, and obtains good friend's user side ID number.Then, receiving terminal is determined a pseudo-publishing side again from ID number of described good friend's user side.
Determine pseudo-publishing side 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, until there is the seed node table in certain online good friend's user side, has namely downloaded small data file, so, receiving terminal just with this good friend's user side as pseudo-publishing side.The method of on-line filtration described here is identical with on-line filtration method among the embodiment one, repeats no more herein.
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 determined the file to download numbering according to the accepting state table, and sends the file downloading request message that carries the file to download numbering to pseudo-publishing side.
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 determine 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 to 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 herein.
Step 606: the receiving terminal basis is redirected end carries the file to download numbering for ID number to redirected end transmission file downloading request message.
Step 607~step 608: be redirected end and judge self whether there is described desire file in download numbering corresponding file, if exist, then described 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-publishing side is downloaded file arrangements corresponding to described file to download numbering in the formation at self, sends to receiving terminal, and execution in step 612 again.
Step 610: be redirected end and return no download file response message to receiving terminal, the reference number of a document that receiving terminal will not have download file again reports pseudo-publishing side, and pseudo-publishing side basis not download file is numbered more new seed node table.
Step 611: receiving terminal sends the file downloading request message that carries the file to download numbering to pseudo-publishing side again, and receives file corresponding to described file to download numbering.
Step 612: receiving terminal upgrades the accepting state table, accepting state corresponding to file to download numbering in self accepting state table is changed to download.
Step 613: receiving terminal reports pseudo-publishing side with the reference number of a document of downloaded file, and pseudo-publishing side is numbered more new seed node table according to downloaded file.
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 determined 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 in the situation of publishing side 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 down small documents set is as pseudo-publishing side, by the pseudo-publishing side download file, thereby reach under the publishing side off-line case, receiving terminal still can obtain the purpose of the small documents set that publishing side provides.
In sum, more than be preferred embodiment of the present invention only, be not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, a kind of 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 are determined the file to download numbering according to the accepting state table, and initiate to download flow process according to file to download numbering and seed node table, obtain file corresponding to described file to download numbering;
C, receiving terminal upgrade the accepting state table, and return step b, until obtain the All Files of small documents set.
2, method according to claim 1 is characterized in that, the described download flow process of step b is:
X1, receiving terminal send the file downloading request message that carries the file to download numbering to this downloading end;
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 described desire file in download numbering corresponding file, if exist, then described desire file in download numbering corresponding file being arranged in self downloads in the formation, send to receiving terminal, again execution in step c; Otherwise, execution in step X5;
X4, this downloading end are downloaded file arrangements corresponding to described file to download numbering in the formation at self, send to receiving terminal, again execution in step c;
X5, redirected end return no download file response message to receiving terminal, and receiving terminal sends the file downloading request message that carries the file to download numbering to former downloading end again, and receive the file of described file to download numbering correspondence, again execution in step c.
3, method according to claim 2 is characterized in that, when the publishing side that provides small documents to gather at first is online,
Former downloading end is publishing side described in step a and the step b download flow process;
Method that determining step b downloads this download end described in the flow process 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 determined this download user end again from described online good friend's user side.
4, method according to claim 3 is characterized in that, described receiving terminal determines that from online good friend's user side this method of downloading end is:
Receiving terminal is determined 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 as this downloading end.
5, method according to claim 3 is characterized in that, further comprises before the described step a: publishing side sends to receiving terminal shares notification message, and receiving terminal sends downloading request message to publishing side again.
6, method according to claim 3 is characterized in that, the described receiving terminal of step X5 sends the file downloading request message and receives between the file to the issue end and further comprises:
Publishing side judges whether that according to self downloading task queue table and seed node table needs are redirected, if need, then according to the definite end that is redirected of self seed node table, receiving terminal sends the file downloading request message that carries the file to download numbering to being redirected user side, be redirected user side and judge self whether there be file corresponding to described file to download numbering, if exist, then the file arrangements that described file to download numbering is corresponding self is being downloaded in the formation; Otherwise publishing side is downloaded file arrangements corresponding to described file to download numbering in the formation at self.
7, method according to claim 3 is characterized in that, the described receiving terminal of step c upgrades the accepting state table and returns between the step b and further comprises:
Receiving terminal reports publishing side with the downloaded file numbering, and publishing side is numbered more new seed node table according to downloaded file;
The described redirected end of step X5 returns no download file response message and receiving terminal further comprises to receiving terminal between publishing side Transmit message downloading request message:
The redirected end not reference number of a document of download file reports publishing side, and publishing side basis not download file is numbered more new seed node table.
8, method according to claim 2 is characterized in that, when providing the publishing side off-line of small documents set at first,
This downloading end and former downloading end in the described former downloading end of step a, the described download flow process of step b all are pseudo-publishing side;
Further comprise before the described step a:
Receiving terminal obtains the prior good friend's user side preserved of publishing side ID number from the information index server, and receiving terminal is determined a pseudo-publishing side ID number according to good friend's user side again, sends downloading request message to pseudo-publishing side again.
9, method according to claim 8 is characterized in that, the described redirected end of step X5 returns no download file response message and receiving terminal further comprises to receiving terminal between pseudo-publishing side Transmit message downloading request message:
The receiving terminal not reference number of a document of download file reports pseudo-publishing side, and pseudo-publishing side basis not download file is numbered more new seed node table;
The described receiving terminal of step c upgrades the accepting state table and returns between the step b and further comprises:
Receiving terminal reports pseudo-publishing side with the downloaded file numbering, and pseudo-publishing side is numbered more new seed node table according to downloaded file.
According to each described method of claim 2 to 9, it is characterized in that 10, the described method that needs to be redirected that judges whether is:
Judge according to the downloading task number in self downloading task queue table whether self is busy, if busy, judges whether to exist redirected user side according to the seed node table again, is 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 true CN101075879A (en) 2007-11-21
CN101075879B 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)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931633A (en) * 2010-09-29 2010-12-29 山东大学 Incremental synchronization method applied to intelligent mobile phone terminal
CN101170371B (en) * 2007-11-30 2010-12-29 中兴通讯股份有限公司 A client data request optimization method and system in P2P order
CN102135872A (en) * 2010-01-22 2011-07-27 腾讯科技(深圳)有限公司 Method and device for image configuration in login area
CN101459697B (en) * 2009-01-07 2012-01-04 清华大学 Access method and apparatus for shared document
CN102469062A (en) * 2010-10-29 2012-05-23 北大方正集团有限公司 Data distributing method and device
CN102857403A (en) * 2011-06-30 2013-01-02 北京神州泰岳软件股份有限公司 Instant messaging client data sharing method and system
CN103678535A (en) * 2013-12-02 2014-03-26 北京奇虎科技有限公司 Browser and downloading method thereof
CN103970794A (en) * 2013-02-01 2014-08-06 联想(北京)有限公司 Method and device for accessing data
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
CN111371878A (en) * 2020-02-28 2020-07-03 北京和利时系统工程有限公司 Information publishing method, ISCS (Internet service System), PIS (particle information System) and device

Family Cites Families (2)

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

Cited By (15)

* 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
CN102135872A (en) * 2010-01-22 2011-07-27 腾讯科技(深圳)有限公司 Method and device for image configuration in login area
CN101931633B (en) * 2010-09-29 2013-11-06 山东大学 Incremental synchronization method applied to intelligent mobile phone terminal
CN101931633A (en) * 2010-09-29 2010-12-29 山东大学 Incremental synchronization method applied to intelligent mobile phone terminal
CN102469062A (en) * 2010-10-29 2012-05-23 北大方正集团有限公司 Data distributing method and device
CN102469062B (en) * 2010-10-29 2014-05-07 北大方正集团有限公司 Data distributing method and device
CN102857403A (en) * 2011-06-30 2013-01-02 北京神州泰岳软件股份有限公司 Instant messaging client data sharing method and system
CN102857403B (en) * 2011-06-30 2015-04-22 北京神州泰岳软件股份有限公司 Instant messaging client data sharing method and system
CN103970794A (en) * 2013-02-01 2014-08-06 联想(北京)有限公司 Method and device for accessing data
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
CN111371878A (en) * 2020-02-28 2020-07-03 北京和利时系统工程有限公司 Information publishing method, ISCS (Internet service System), PIS (particle information System) and device

Also Published As

Publication number Publication date
CN101075879B (en) 2012-04-25

Similar Documents

Publication Publication Date Title
CN101075879A (en) Method for downloading data
CN101030873A (en) Method and system for downloading data
CN1852101A (en) Parallel downloading method and terminal
CN1852105A (en) Method and system for realizing end-to-end data sharing
CN1852502A (en) Method for realizing load uniform in clustering system, system and storage controller
CN101068173A (en) Resource sharing method and system
CN1324856C (en) Data transmission method of network equipment based on multinetwork card and device
CN1960521A (en) Method and system of increasing system capacity of multimedia message service
CN1638353A (en) Network topology configuring method and node
CN1934842A (en) Method for optimally utilizing a peer to peer network
CN101030869A (en) Method and device for downloading network resources
CN1913661A (en) Message transmitting equipment and method
CN1522013A (en) System and method for synchronization of server and customer
CN1584865A (en) Comptuer software updating method
CN1866863A (en) Vicinage finding method and system for network apparatus
CN101076032A (en) Method and system for transmitting information
CN1744650A (en) Data processing system, control method therefor, document input apparatus, control method therefor, document managing apparatus, control method therefor
CN1874233A (en) System and method for sending message of broadcast
CN1859122A (en) Method and device for realizing classified service to business provider
CN1913692A (en) Method for loading equipment software according to allocation
CN1794721A (en) Method and device of unloading medium object at appointed time
CN1777110A (en) Cluster device batch file transmitting method and file transmission device
CN101080015A (en) System and method for uploading third party video and audio content in IPTV system
CN1863154A (en) Method for limiting current for point to point application
CN1722663A (en) A proxy server system and method for realizing proxy communication thereof

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.