CN101945032A - File downloading method and device in point to point network - Google Patents
File downloading method and device in point to point network Download PDFInfo
- Publication number
- CN101945032A CN101945032A CN2009100545214A CN200910054521A CN101945032A CN 101945032 A CN101945032 A CN 101945032A CN 2009100545214 A CN2009100545214 A CN 2009100545214A CN 200910054521 A CN200910054521 A CN 200910054521A CN 101945032 A CN101945032 A CN 101945032A
- Authority
- CN
- China
- Prior art keywords
- file
- fragment
- point
- specified portions
- download
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 239000012634 fragment Substances 0.000 claims description 186
- 101100217298 Mus musculus Aspm gene Chemical group 0.000 claims description 7
- 238000011068 loading method Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 6
- 238000012423 maintenance Methods 0.000 description 4
- 230000008676 import Effects 0.000 description 2
- VYMDGNCVAMGZFE-UHFFFAOYSA-N phenylbutazonum Chemical compound O=C1C(CCCC)C(=O)N(C=2C=CC=CC=2)N1C1=CC=CC=C1 VYMDGNCVAMGZFE-UHFFFAOYSA-N 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a file downloading method and a device in a point to point network. The invention provides a file downloading method in a network entity of the point to point network according to the first aspect of the invention. The method comprises the following steps of: (B) confirming an appointed part segment of a first file; (C) downloading the appointed part segment from the point to point network according to a first matching parameter of the first file; and (D) combining at least one part of the appointed part segment into a recognizable second file. The method and the device of the invention can be used for acquiring a higher downloading speed when downloading a file.
Description
Technical field
The present invention relates to P-2-P technology, relate in particular to the file transfer technology in the point to point network.
Background technology
In recent years, the service that provides Streaming Media to download by P-2-P technology obtains application more and more widely.Usually, such service is all adopted a little to server and dot pattern.Service provider provides the streaming media resource Download Server, after client has been selected the files in stream media of required download, not only can download the fragment of this document from server, can also be by the characteristic value of this document, the digital digest value of the unique correspondence of determining by the hash function of this document normally, in network, search for, download the fragment of this document from other clients of the fragment that has this document there.
Fig. 1 shows a kind of system block diagram of the prior art.Use the user login services device 10 of client 21, and to have selected a URL(uniform resource locator) be that U1, digital digest value are that the files in stream media F1 of D1 downloads, watch while downloading or listen to.In this downloading process, client 21 is the fragment of matching condition from server 10 there file in download F1 with URL(uniform resource locator) U1 not only, be the fragment that matching condition other from point to point network have the client there file in download F1 of file F1 also, thereby make the average speed of download of all clients of file in download F1 than being improved under traditional server/customer end pattern with digital digest value D 1.
Yet, when the user who uses client 21 carries out F.F. when watching, listening to file F1, when especially being fast-forward to the fragment that file F1 do not download as yet, in a kind of prior art, the mode that adopts is to think that client 21 initiated a new download request, the file of being asked is a new file F2, and it comprises the content from the F.F. pointer of file F1 to latter end.This document F2 is corresponding to URL(uniform resource locator) U2 and digital digest value D2.Because F2 is different from F1, so U2 is different from U1, D2 is different from D1.Because there is the user who carries out identical forwarding operation with the user who uses client 21 hardly, thereby there are other clients hardly with client 21 shared file F2, client 21 can only be the fragment of matching condition from server 10 there file in download F2 with URL(uniform resource locator) U2 basically, makes that speed of download reduces.
Therefore, need a kind of method, be used for fragment, and obtain speed of download higher on the average meaning in the point to point network file in download.
Summary of the invention
In the point to point network, a bigger file can be divided into a plurality of fragments, shares this file by exchanging these fragments between the peer-entities.A network entity can be downloaded the fragment of this document with filename, digital digest value or other signs of a file from peer-entities as the index condition.Usually the digital digest value that adopts a file and/or its fragment in the point to point network is as the index condition, because have the characteristic of very good " corresponding one by one " between file and its digital digest value now.The digital digest value of a file determines by hash function, hash function commonly used comprise MD5 function, SHA1 function, etc.
With a complete file F1 is example, such as but not limited to, F1 is an audio/video file.F2 is the formed file of a part of intercepting F 1.Usually, file F2 can be cut apart again, and like this, the fragment of the file F2 just fragment with file F1 is different, therefore, also just can't obtain file F2 by the fragment of merge file F1.Like this, the network entity of thinking file in download F2 can't be realized point-to-point file-sharing with the network entity of the fragment that has file F1.
The FLV file is a kind of existing files in stream media form.FLV is a binary file, is made up of file header (FLV header) and some tag, and tag can be divided into three classes again: audio stream, video flowing, script flow (keyword or fileinfo and so on) are used for the carrying media content.When the FLV file was carried out point-to-point transmission, cutting apart of carrying out usually was that each fragment comprises some tag, and for example, each fragment comprises a tag.Following herein is in the description carried out of example with the FLV file, all is defaulted as a fragment and comprises a tag just; Comprise the situation of a plurality of tag for a fragment, those skilled in the art should be able to derive voluntarily according to the description of this paper and draw.Characteristics of FLV file are, the continuous tag of an intercepting part from all tag of a FLV file need not this part continuous tag is made any modification, only adds a file header and can form the FLV file that another can be discerned, can play.
For example shown in Figure 2, FLV file F1 include file head FH and a plurality of fragment P
1To P
N+m, each fragment comprises a tag; Intercepting part fragment wherein, for example fragment P
nTo P
N+m, add file header FH, can form FLV file F2.This characteristics of FLV file make the network entity of thinking file in download F2 and the network entity that has the fragment of file F1 can realize point-to-point file-sharing.
According to a first aspect of the invention, provide the document down loading method in a kind of network entity of point to point network, said method comprising the steps of: B. determines the fragment of a specified portions of one first file; C. according to first match parameter of first file, from point to point network, download the fragment of described specified portions; D. at least a portion in the fragment of described specified portions is formed discernible second file.
According to a second aspect of the invention, provide the file download apparatus in a kind of network entity of point to point network, having comprised: first determines device, is used for determining the fragment of a specified portions of one first file; The fragment download apparatus is used for first match parameter according to first file, downloads the fragment of described specified portions from point to point network; The combination of files device is formed discernible second file with at least a portion in the fragment of described specified portions.
According to a third aspect of the invention we, provide a kind of user terminal, it comprises the file download apparatus of second aspect present invention.
According to a forth aspect of the invention, provide a kind of computer-readable storage medium, stored the computer program that can be read and move by computer on this medium with the document down loading method of carrying out first aspect present invention.
First file among the present invention and second file are the file with a kind of form, for example files in stream media of FLV form.Those skilled in the art will be understood that the file that has an extended formatting of similar characteristics with the FLV file also goes for the present invention.
Method in the application of the invention, device, user terminal or computer-readable storage medium can obtain higher speed of download when file in download.
Description of drawings
By reading the following detailed description of non-limiting example being done with reference to accompanying drawing, it is more obvious that other features, objects and advantages of the present invention will become.
Fig. 1 shows a kind of system block diagram of the prior art;
Fig. 2 shows the segmentation schematic diagram of FLV file according to an embodiment of the invention;
Fig. 3 shows system block diagram according to an embodiment of the invention;
Fig. 4 shows the flow chart of the document down loading method in the network entity of point to point network according to an embodiment of the invention;
Fig. 5 a to Fig. 5 c shows the schematic diagram of the relative users operation in the file download process according to an embodiment of the invention;
Fig. 6 shows system block diagram according to an embodiment of the invention;
Fig. 7 shows the schematic diagram of the relative users operation in the file download process according to an embodiment of the invention;
Fig. 8 shows the structured flowchart of the file download apparatus in the network entity of point to point network according to an embodiment of the invention;
Wherein, same or analogous Reference numeral is represented same or analogous steps characteristic or device (module).
Embodiment
Fig. 3 shows system block diagram according to an embodiment of the invention.As shown in the figure, point to point network comprises server 10 and client 21,22,23.Point to point network shown in Figure 3 is a network that adopts server/customer end constitution, and this is institute of mechanism a kind of network architecture of employing usually that the Internet video service is provided at present.System shown in Figure 3 only is exemplary and nonrestrictive, and the present invention also can be applied to the network of other frameworks, for example the pure point to point network of equity between all entities.
Fig. 4 shows the flow chart of the document down loading method in the network entity of point to point network according to an embodiment of the invention.Usually, said here network entity is a client, computer just, and this file download process is performed by the corresponding software in the client.
At first, in step S2, client is determined the fragment of a specified portions of one first file.
Then, in step S3, client is downloaded the fragment of described specified portions according to first match parameter of first file from point to point network.
Then, in step S4, client is formed discernible second file with at least a portion in the fragment of described specified portions.
Fig. 5 a to Fig. 5 c shows the schematic diagram of the relative users operation in the file download process according to an embodiment of the invention.
Below in conjunction with Fig. 2 to Fig. 5, a specific embodiment of the present invention is described.
Concrete scene is that a user downloads the first file F1 by client 21.For example shown in Figure 2, this document F1 is a FLV file, include file head FH and a plurality of fragment P
1To P
N+m, each fragment comprises a tag.Server 10 provides the file download service based on HTTP(Hypertext Transport Protocol), comprising file F 1.Client 21 is not only from the fragment of server 10 file in download F1, but also can for example download the fragment of the first file F1 from client 22, client 23 from point to point network.
At first, client 21 is obtained of the first file F1 and is cut apart indication information.
Particularly, client 21 is being downloaded the first file F1 on one side, and the user watches the first file F1 by the network player in the client 21 on one side.For example shown in Fig. 5 a, the playing progress rate pointer 51 in the playing progress rate display window 50 is used to indicate current playing progress rate, and for example current progress is g1 (representing with the time usually), the current part of having downloaded of dot-hatched region representation.If drag playing progress rate pointer 51, still can play smoothly at the dot-hatched intra-zone.
When the user drags to position outside the dot-hatched zone with playing progress rate pointer 51, the g2 position among Fig. 5 b for example, just the user wishes to begin to continue to watch from the time of g2 representative the remainder of the first file F1, and client 21 will be cut apart indication information according to that user's operation is obtained about the first file F1.Usually, this is cut apart indication information and comprises relevant information of time with new progress g2 representative.
Then, in step S2, client 21 will be determined the fragment of the specified portions of the first file F1 according to cutting apart indication information.
Particularly, the time of new progress g2 representative is corresponding to fragment P
N-1, client 21 can be with fragment P
nTo P
N+mBe defined as the fragment of specified portions, for example shown in Fig. 5 b, also can be with fragment P
N-1To P
N+mBe defined as the fragment of specified portions, for example shown in Fig. 5 c.
Then, in step S3, client 21 will be downloaded the fragment of specified portions according to first match parameter of the first file F1 from point to point network.
According to some embodiments of the present invention, particularly, first match parameter of the first file F1 is to adopt hash function to be its digital digest value D1 that determines, client 21 is downloaded the fragment of specified portions, for example fragment P according to the digital digest value D1 of the first file F1 as the index matching condition from point to point network
nTo P
N+mFor example, the fragment downloaded of client 21 can be from client 22, client 23 etc.Digital digest value D1 can adopt MD5 function or SHA1 function to calculate.Because have the characteristic of very good " corresponding one by one " between file and its digital digest value, so can guarantee to download the accuracy of content.Those skilled in the art will be understood that the mode of foundation, maintenance and the use of the index relative table of file and its digital digest value in the point to point network is not an emphasis of the present invention, and any feasible mode of the prior art all can be applicable to the present invention.
According to some embodiments of the present invention, first match parameter of the first file F1 also can adopt its filename, and client 21 is downloaded the fragment of specified portions, for example fragment P according to the filename of the first file F1 as the index matching condition from point to point network
nTo P
N+mCertainly, can also adopt first match parameter of other parameters as the first file F1.
According to some embodiments of the present invention, also comprise among the step S3: client 21 is downloaded the fragment of specified portions according to second match parameter of the first file F1 from server 10.
Particularly, second match parameter of the first file F1 is its URL(uniform resource locator) U1 in server 10.Client 21 is downloaded the fragment of specified portions, for example fragment P according to the URL(uniform resource locator) U1 of the first file F1 from server 10
nTo P
N+mCertainly, second match parameter of the first file F1 also can adopt other parameters.
Then, in step S4, client 21 is formed discernible second file with at least a portion in the fragment of specified portions.
Particularly, for example shown in Fig. 5 b, the fragment of specified portions comprises fragment P
nTo P
N+mClient 21 can be with fragment P
nTo P
N+mCombine in order, and add and go up file header FH, form the discernible second file F2, the second file F2 also is a FLV file.
Possible situation is, client 21 has not also been downloaded all fragments of specified portions, and that has for example downloaded only has a fragment P
n, fragment P
N+1(m>2).Then client 21 can be with fragment P
n, P
N+1Combine in order, and add and go up file header FH, form the discernible second file F2.
Scene in the present embodiment is that the user watches the FLV file by the network player in the client 21.Therefore, also comprise a step after step S4: client 21 offers network player with the second file F2.Like this, user's content of beginning to continue to watch the first file F1 remainder from time of new progress g2 representative.Because the fragment of the specified portions of the first file F1, just corresponding to the fragment P of the first file F1 remainder content (that is content of the second file F2)
nTo P
N+mCan from network, download by P-2-P technology, so can obtain higher speed of download, the user can watch the content of the first file F1 remainder soon glibly after finishing the operation that drags the playing progress rate pointer, thereby makes user's Quality of experience improve.
Fig. 6 shows system block diagram in accordance with another embodiment of the present invention.As shown in the figure, point to point network comprises client 25,26,27.Shown in Figure 6 is a pure point to point network, and such network configuration only is exemplary and nonrestrictive.
Fig. 7 shows the schematic diagram of the relative users operation in the file download process according to an embodiment of the invention.
Below in conjunction with Fig. 2, Fig. 4, Fig. 6, Fig. 7, a specific embodiment of the present invention is described.
Concrete scene is a user downloads the first file F1 by client 25 a part.For example shown in Figure 2, this document F1 is a FLV file, include file head FH and a plurality of fragment P
1To P
N+m, each fragment comprises a tag.Client 25 can for example be downloaded the fragment of the first file F1 from client 26, client 27 from point to point network.
In step S2, client 25 will be determined the fragment of the specified portions of the first file F1.
Particularly, client 25 can be known file (time) length of the first file F1 by retrieval.For example shown in Figure 7, can provide file size display window 60 to show the length of the whole first file F1 in the client 25.Also comprise the first intercepting pointer 61 and the second intercepting pointer 62 in the file size display window 60, its initial default position can be arranged at the beginning and the end of file size display window 60 respectively.The user can determine the fragment of specified portions by dragging the first intercepting pointer 61 and the second intercepting pointer 62.For example, the user drags to the first intercepting pointer 61 the t1 moment, the second intercepting pointer 62 is dragged to t2 constantly.T1 constantly corresponding fragment P
2, t2 constantly corresponding fragment P
N+1, client 25 can be with fragment P
2To P
N+1Be defined as the fragment of specified portions, for example shown in Fig. 7.
Perhaps, client 25 can provide input window, imports the intercepting zero hour and the intercepting termination moment by the user.For example, the intercepting of user input is that the intercepting of t1, input stops being constantly t2 the zero hour.T1 constantly corresponding fragment P
2, t2 constantly corresponding fragment P
N+1, client 25 can be with fragment P
2To P
N+1Be defined as the fragment of specified portions, for example shown in Fig. 7.
Then, in step S3, client 25 will be downloaded the fragment of specified portions according to first match parameter of the first file F 1 from point to point network.
According to some embodiments of the present invention, particularly, first match parameter of the first file F1 is to adopt hash function to be its digital digest value D1 that determines, client 25 is downloaded the fragment of specified portions, for example fragment P according to the digital digest value D1 of the first file F 1 as the index matching condition from point to point network
2To P
N+1For example, the fragment downloaded of client 25 can be from client 26, client 27 etc.Digital digest value D 1 can adopt MD5 function or SHA1 function to calculate.Because have the characteristic of very good " corresponding one by one " between file and its digital digest value, so can guarantee to download the accuracy of content.Those skilled in the art will be understood that the mode of foundation, maintenance and the use of the index relative table of file and its digital digest value in the point to point network is not an emphasis of the present invention, and any feasible mode of the prior art all can be applicable to the present invention.
According to some embodiments of the present invention, first match parameter of the first file F1 also can adopt its filename, and client 25 is downloaded the fragment of specified portions, for example fragment P according to the filename of the first file F1 as the index matching condition from point to point network
2To P
N+1Certainly, can also adopt first match parameter of other parameters as the first file F1.
Then, in step S4, client 25 is formed discernible second file with at least a portion in the fragment of specified portions.
Particularly, for example shown in Fig. 7, the fragment of specified portions comprises fragment P
2To P
N+1Client 25 can be with fragment P
2To P
N+1Combine in order, and add and go up file header FH, form the discernible second file F2, the second file F2 also is a FLV file.Because the fragment of the specified portions of the first file F1, just corresponding to the fragment P of the content of the second file F2
2To P
N+1, can from network, download by P-2-P technology, so can obtain higher speed of download.
Possible situation is, client 25 has not also been downloaded all fragments of specified portions, and that has for example downloaded only has a fragment P
2, fragment P
3(n>2).Then client 25 can be with fragment P
2, P
3Combine in order, and add and go up file header FH, form the discernible second file F2.
The possible application scenarios of this embodiment is that the user has gained some understanding for the content of the first file F1, and only wishes to download elite part wherein.
Fig. 8 shows the structured flowchart of the file download apparatus in the network entity of point to point network according to an embodiment of the invention.As shown in the figure, file download apparatus 200 comprises: cut apart indication information deriving means 201, the first and determine device 202, fragment download apparatus 203, combination of files device 204, the first generators 205.In some other embodiment of the present invention, file download apparatus 200 comprises the part in the said apparatus 201 to 205, and other devices.
Below in conjunction with Fig. 2 to Fig. 5, Fig. 8, a specific embodiment of the present invention is described.
Concrete scene is that a user downloads the first file F1 by client 21.For example shown in Figure 2, this document F1 is a FLV file, include file head FH and a plurality of fragment P
1To P
N+m, each fragment comprises a tag.Server 10 provides the file download service based on HTTP(Hypertext Transport Protocol), comprising file F1.Client 21 is not only from the fragment of server 10 file in download F1, but also can be from point to point network, and for example calm family end 22, client 23 places download the fragment of the first file F1.File download apparatus 200 typically is arranged in the client 21, comprising: cut apart indication information deriving means 201, the first and determine device 202, fragment download apparatus 203, combination of files device 204, the first generators 205.
At first, cutting apart indication information deriving means 201 and will obtain of the first file F1 and cut apart indication information in the client 21.
Particularly, client 21 is being downloaded the first file F1 on one side, and the user watches the first file F1 by the network player in the client 21 on one side.For example shown in Fig. 5 a, the playing progress rate pointer 51 in the playing progress rate display window 50 is used to indicate current playing progress rate, and for example current progress is g1 (representing with the time usually), the current part of having downloaded of dot-hatched region representation.If drag playing progress rate pointer 51, still can play smoothly at the dot-hatched intra-zone.
When the user drags to position outside the dot-hatched zone with playing progress rate pointer 51, the g2 position among Fig. 5 b for example, just the user wishes to begin to continue to watch from the time of g2 representative the remainder of the first file F1, cuts apart indication information deriving means 201 and will cut apart indication information according to that user's operation is obtained about the first file F1.Usually, this is cut apart indication information and comprises relevant information of time with new progress g2 representative.
Then, the definite device 202 of first in the client 21 will be determined the fragment of the specified portions of the first file F1 according to cutting apart indication information.
Particularly, the time of new progress g2 representative is corresponding to fragment P
N-1, first determines that device 202 can be with fragment P
nTo P
N+mBe defined as the fragment of specified portions, for example shown in Fig. 5 b, also can be with fragment P
N-1To P
N+mBe defined as the fragment of specified portions, for example shown in Fig. 5 c.
Then, the fragment download apparatus 203 in the client 21 will be downloaded the fragment of specified portions according to first match parameter of the first file F1 from point to point network.
According to some embodiments of the present invention, particularly, first match parameter of the first file F1 is to adopt hash function to be its digital digest value D1 that determines, fragment download apparatus 203 is downloaded the fragment of specified portions, for example fragment P according to the digital digest value D 1 of the first file F1 as the index matching condition from point to point network
nTo P
N+mFor example, the fragment downloaded of fragment download apparatus 203 can be from client 22, client 23 etc.Digital digest value D1 can adopt MD5 function or SHA1 function to calculate.Because have the characteristic of very good " corresponding one by one " between file and its digital digest value, so can guarantee to download the accuracy of content.Those skilled in the art will be understood that the mode of foundation, maintenance and the use of the index relative table of file and its digital digest value in the point to point network is not an emphasis of the present invention, and any feasible mode of the prior art all can be applicable to the present invention.
According to some embodiments of the present invention, first match parameter of the first file F1 also can adopt its filename, fragment download apparatus 203 is downloaded the fragment of specified portions, for example fragment P according to the filename of the first file F1 as the index matching condition from point to point network
nTo P
N+mCertainly, can also adopt first match parameter of other parameters as the first file F1.
According to some embodiments of the present invention, fragment download apparatus 203 also will be downloaded the fragment of specified portions according to second match parameter of the first file F1 from server 10.
Particularly, second match parameter of the first file F1 is its URL(uniform resource locator) U1 in server 10.Fragment download apparatus 203 is downloaded the fragment of specified portions, for example fragment P according to the URL(uniform resource locator) U1 of the first file F1 from server 10
nTo P
N+mCertainly, second match parameter of the first file F1 also can adopt other parameters.
Then, the combination of files device 204 in the client 21 is formed discernible second file with at least a portion in the fragment of specified portions.
Particularly, for example shown in Fig. 5 b, the fragment of specified portions comprises fragment P
nTo P
N+mCombination of files device 204 can be with fragment P
nTo P
N+mCombine in order, and add and go up file header FH, form the discernible second file F2, the second file F2 also is a FLV file.
Possible situation is, fragment download apparatus 203 has not also been downloaded all fragments of specified portions, and that has for example downloaded only has a fragment P
n, fragment P
N+1(m>2).Then combination of files device 204 can be with fragment P
n, P
N+1Combine in order, and add and go up file header FH, form the discernible second file F2.
Then, first generator 205 in the client 21 offers network player with the second file F2.Like this, the user just can begin to continue to watch the content of the first file F1 remainder from the time of new progress g2 representative.Because the fragment of the specified portions of the first file F1, just corresponding to the fragment P of the first file F1 remainder content (that is content of the second file F2)
nTo P
N+mCan from network, download by P-2-P technology, so can obtain higher speed of download, the user can watch the content of the first file F1 remainder soon glibly after finishing the operation that drags the playing progress rate pointer, thereby makes user's Quality of experience improve.
Below in conjunction with Fig. 2, Fig. 4, Fig. 6, Fig. 7, Fig. 8, another specific embodiment of the present invention is described.
Concrete scene is a user downloads the first file F1 by client 25 a part.For example shown in Figure 2, this document F1 is a FLV file, include file head FH and a plurality of fragment P
1To P
N+m, each fragment comprises a tag.Client 25 can for example be downloaded the fragment of the first file F 1 from client 26, client 27 from point to point network.File download apparatus 200 typically is arranged in the client 25, comprising: first determines device 202, fragment download apparatus 203, combination of files device 204.
At first, the definite device 202 of first in the client 25 will be determined the fragment of the specified portions of the first file F1.
Particularly, the file download apparatus 200 in the client 25 can be known file (time) length of the first file F1 by retrieval.For example shown in Figure 7, can provide file size display window 60 to show the length of the whole first file F1 in the file download apparatus 200.Also comprise the first intercepting pointer 61 and the second intercepting pointer 62 in the file size display window 60, its initial default position can be arranged at the beginning and the end of file size display window 60 respectively.The user can determine the fragment of specified portions by dragging the first intercepting pointer 61 and the second intercepting pointer 62.For example, the user drags to the first intercepting pointer 61 the t1 moment, the second intercepting pointer 62 is dragged to t2 constantly.T1 constantly corresponding fragment P
2, t2 constantly corresponding fragment P
N+1, first determines that device 202 can be with fragment P
2To P
N+1Be defined as the fragment of specified portions, for example shown in Fig. 7.
Perhaps, file download apparatus 200 can provide input window, imports the intercepting zero hour and the intercepting termination moment by the user.For example, the intercepting of user input is that the intercepting of t1, input stops being constantly t2 the zero hour.T1 constantly corresponding fragment P
2, t2 constantly corresponding fragment P
N+1, first determines that device 202 can be with fragment P
2To P
N+1Be defined as the fragment of specified portions, for example shown in Fig. 7.
Then, the fragment download apparatus 203 in the client 25 will be downloaded the fragment of specified portions according to first match parameter of the first file F1 from point to point network.
According to some embodiments of the present invention, particularly, first match parameter of the first file F1 is to adopt hash function to be its digital digest value D1 that determines, fragment download apparatus 203 is downloaded the fragment of specified portions, for example fragment P according to the digital digest value D 1 of the first file F 1 as the index matching condition from point to point network
2To P
N+1For example, the fragment downloaded of the fragment download apparatus 203 in the client 25 can be from client 26, client 27 etc.Digital digest value D1 can adopt MD5 function or SHA1 function to calculate.Because have the characteristic of very good " corresponding one by one " between file and its digital digest value, so can guarantee to download the accuracy of content.Those skilled in the art will be understood that the mode of foundation, maintenance and the use of the index relative table of file and its digital digest value in the point to point network is not an emphasis of the present invention, and any feasible mode of the prior art all can be applicable to the present invention.
According to some embodiments of the present invention, first match parameter of the first file F1 also can adopt its filename, fragment download apparatus 203 in the client 25 is downloaded the fragment of specified portions, for example fragment P according to the filename of the first file F1 as the index matching condition from point to point network
2To P
N+1Certainly, can also adopt first match parameter of other parameters as the first file F1.
Then, the combination of files device 204 in the client 25 is formed discernible second file with at least a portion in the fragment of specified portions.
Particularly, for example shown in Fig. 7, the fragment of specified portions comprises fragment P
2To P
N+1Combination of files device 204 in the client 25 can be with fragment P
2To P
N+1Combine in order, and add and go up file header FH, form the discernible second file F2, the second file F2 also is a FLV file.Because the fragment of the specified portions of the first file F1, just corresponding to the fragment P of the content of the second file F2
2To P
N+1, can from network, download by P-2-P technology, so can obtain higher speed of download.
Possible situation is, fragment download apparatus 203 has not also been downloaded all fragments of specified portions, and that has for example downloaded only has a fragment P
2, fragment P
3(n>2).Then combination of files device 204 can be with fragment P
2, P
3Combine in order, and add and go up file header FH, form the discernible second file F2.
The possible application scenarios of this embodiment is that the user has gained some understanding for the content of the first file F1, and only wishes to download elite part wherein.
The specified portions of first file in the foregoing description all is a plurality of continuous fragments.Those skilled in the art will be understood that the specified portions of the first file F1 also can be incomplete continuous fragments, and for example, specified portions can comprise fragment P
2, P
3And fragment P
7, P
8(n+m≥8)。
In the foregoing description, each fragment comprises a tag, and this only is exemplary and nonrestrictive.Comprise the situation of a plurality of tag for a fragment, those skilled in the art should be able to derive voluntarily according to the description of this paper and draw.
In the foregoing description, first file and second file all are files in stream media of FLV form.Those skilled in the art will be understood that the file that has an extended formatting of similar characteristics with the FLV file also goes for the present invention.
Alleged various devices among the present invention can be software function modules, also can be hardware modules, the hardware module of software function that can also be integrated.
Although sets forth in detail and described the present invention in accompanying drawing and aforesaid description should think that this is illustrated and describes is illustrative and exemplary, rather than restrictive; The invention is not restricted to above-mentioned execution mode.
The those skilled in the art in present technique field can be by research specification, disclosed content and accompanying drawing and appending claims, and understanding and enforcement are to other changes of the execution mode of disclosure.In the claims, word " comprises " element and the step of not getting rid of other, and wording " one " is not got rid of plural number.In the practical application of invention, the function of a plurality of technical characterictics of being quoted during a part possibility enforcement of rights requires.Any Reference numeral in the claim should not be construed as the restriction to scope.
Claims (22)
1. the document down loading method in the network entity of a point to point network said method comprising the steps of:
B. determine the fragment of a specified portions of one first file;
C. according to first match parameter of first file, from point to point network, download the fragment of described specified portions;
D. at least a portion in the fragment of described specified portions is formed discernible second file.
2. method according to claim 1 is characterized in that, also comprises step:
A. cut apart indication information for one that obtains first file;
Cut apart the fragment that indication information is determined the described specified portions of first file according to described among the described step B.
3. method according to claim 1 is characterized in that, described first match parameter is that the employing hash function is the digital digest value that first file is determined.
4. method according to claim 3 is characterized in that, described hash function is MD5 function or SHA1 function.
5. method according to claim 1 is characterized in that, described step C also comprises:
According to second match parameter of first file, download the fragment of described specified portions from server.
6. method according to claim 5 is characterized in that, described second match parameter is the URL(uniform resource locator) of described first file.
7. method according to claim 1 is characterized in that, described step D comprises:
For at least a portion in the fragment of described specified portions adds a file header, thereby form described second file.
8. method according to claim 1 is characterized in that, also comprises step:
E. described second file is offered network player.
9. according to each described method in the claim 1 to 8, it is characterized in that described first file is a files in stream media.
10. method according to claim 9 is characterized in that, described first file is a flv file.
11. the file download apparatus in the network entity of a point to point network comprises:
First determines device, is used for the fragment of a specified portions of definite one first file;
The fragment download apparatus is used for first match parameter according to first file, downloads the fragment of described specified portions from point to point network;
The combination of files device is formed discernible second file with at least a portion in the fragment of described specified portions.
12. file download apparatus according to claim 11 is characterized in that, also comprises:
The split knowledge information acquisition device is cut apart indication information for one that is used to obtain first file;
Described first determines that device cuts apart the fragment that indication information is determined the described specified portions of first file according to described.
13. file download apparatus according to claim 11 is characterized in that, described first match parameter is that the employing hash function is the digital digest value that first file is determined.
14. file download apparatus according to claim 13 is characterized in that, described hash function is MD5 function or SHA1 function.
15. file download apparatus according to claim 11 is characterized in that, described fragment download apparatus also is used for: according to second match parameter of first file, download the fragment of described specified portions from server.
16. file download apparatus according to claim 15 is characterized in that, described second match parameter is the URL(uniform resource locator) of described first file.
17. file download apparatus according to claim 11 is characterized in that, described combination of files device also is used for: at least a portion of the fragment of described specified portions adds a file header, thereby form described second file.
18. file download apparatus according to claim 11 is characterized in that, also comprises:
First generator is used for described second file is offered network player.
19., it is characterized in that described first file is a files in stream media according to each described file download apparatus in the claim 11 to 18.
20. file download apparatus according to claim 19 is characterized in that, described first file is a flv file.
21. a user terminal is characterized in that, comprises each described file download apparatus in the claim 11 to 20.
22. a computer-readable storage medium is characterized in that, has stored on this medium and can read and move by computer to carry out the computer program according to each described document down loading method in the claim 1 to 10.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910054521.4A CN101945032B (en) | 2009-07-07 | 2009-07-07 | File downloading method and device in point to point network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910054521.4A CN101945032B (en) | 2009-07-07 | 2009-07-07 | File downloading method and device in point to point network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101945032A true CN101945032A (en) | 2011-01-12 |
| CN101945032B CN101945032B (en) | 2015-05-13 |
Family
ID=43436815
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200910054521.4A Expired - Fee Related CN101945032B (en) | 2009-07-07 | 2009-07-07 | File downloading method and device in point to point network |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101945032B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103269352A (en) * | 2012-12-07 | 2013-08-28 | 北京奇虎科技有限公司 | Peer-to-peer P2P file download method and device |
| CN103621151A (en) * | 2011-06-28 | 2014-03-05 | 瑞典爱立信有限公司 | Technique for managing streaming media traffic at a network entity |
| CN103731511A (en) * | 2014-01-26 | 2014-04-16 | 飞狐信息技术(天津)有限公司 | Data acquiring method and data acquiring device in P2P (Peer-to-Peer) system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101141459A (en) * | 2007-10-25 | 2008-03-12 | 南京远古科技有限公司 | Method of implementing data transmission or stream media transmission using combination of HTTP and P2P |
| CN101166190A (en) * | 2007-09-20 | 2008-04-23 | 腾讯科技(深圳)有限公司 | Video/audio file multi-source download method and device |
| CN101197840A (en) * | 2007-12-29 | 2008-06-11 | 深圳市迅雷网络技术有限公司 | Method, system, device for downloading and storing files and method for generating identification |
| CN101217638A (en) * | 2007-12-28 | 2008-07-09 | 深圳市迅雷网络技术有限公司 | Method, system and device for segmented downloading of video files |
-
2009
- 2009-07-07 CN CN200910054521.4A patent/CN101945032B/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101166190A (en) * | 2007-09-20 | 2008-04-23 | 腾讯科技(深圳)有限公司 | Video/audio file multi-source download method and device |
| CN101141459A (en) * | 2007-10-25 | 2008-03-12 | 南京远古科技有限公司 | Method of implementing data transmission or stream media transmission using combination of HTTP and P2P |
| CN101217638A (en) * | 2007-12-28 | 2008-07-09 | 深圳市迅雷网络技术有限公司 | Method, system and device for segmented downloading of video files |
| CN101197840A (en) * | 2007-12-29 | 2008-06-11 | 深圳市迅雷网络技术有限公司 | Method, system, device for downloading and storing files and method for generating identification |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103621151A (en) * | 2011-06-28 | 2014-03-05 | 瑞典爱立信有限公司 | Technique for managing streaming media traffic at a network entity |
| CN103621151B (en) * | 2011-06-28 | 2017-09-15 | 瑞典爱立信有限公司 | For managing the technology that stream broadcasts media business in network entity |
| CN103269352A (en) * | 2012-12-07 | 2013-08-28 | 北京奇虎科技有限公司 | Peer-to-peer P2P file download method and device |
| CN103731511A (en) * | 2014-01-26 | 2014-04-16 | 飞狐信息技术(天津)有限公司 | Data acquiring method and data acquiring device in P2P (Peer-to-Peer) system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101945032B (en) | 2015-05-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA2784233C (en) | Methods and arrangements for http media stream distribution | |
| US7921221B2 (en) | Method and apparatus for obtaining digital objects in a communication network | |
| US10826949B2 (en) | Distributed control of media content item during webcast | |
| KR101501860B1 (en) | A method of targeted ad insertion using http live streaming protocol | |
| US8959241B2 (en) | Method and apparatus for performing server-side splicing for live streaming media | |
| US8015167B1 (en) | Media players and download manager functionality | |
| US9501478B2 (en) | Systems and methods to select media content | |
| US8924404B2 (en) | Information processing device, information processing method, and program | |
| US11350184B2 (en) | Providing advanced playback and control functionality to video client | |
| US9392335B2 (en) | Fragmented content | |
| US10015222B2 (en) | Systems and methods for selective retrieval of adaptive bitrate streaming media | |
| US20140267303A1 (en) | Animation | |
| CN104221391B (en) | The video distribution of peer auxiliary | |
| US11757966B2 (en) | Detecting similar live streams ingested ahead of the reference content | |
| CN108924606B (en) | Streaming media processing method and device, storage medium and electronic device | |
| JP2017108217A (en) | Receiving device, reproduction time control method, and program | |
| CN105592369B (en) | A kind of video frequency abstract processing method and processing device | |
| CN101945032A (en) | File downloading method and device in point to point network | |
| EP2882199B1 (en) | Method and apparatus for prefetching content in a data stream | |
| CN115714766B (en) | File conversion method, system, device and electronic equipment | |
| KR101744974B1 (en) | Method and apparatus for representing common attribute for a plurality of content elements in hypertext transfer protocol streaming service | |
| US11238886B1 (en) | Generating video information representative of audio clips | |
| HK40083106A (en) | Video playing method, apparatus, and computer readable storage medium | |
| CN114125509A (en) | Video playing method and device, electronic equipment and storage medium | |
| CN117939197A (en) | Method, device, electronic device and storage medium for accelerating playback |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150513 Termination date: 20210707 |