CN101945032B - File downloading method and device in point to point network - Google Patents

File downloading method and device in point to point network Download PDF

Info

Publication number
CN101945032B
CN101945032B CN200910054521.4A CN200910054521A CN101945032B CN 101945032 B CN101945032 B CN 101945032B CN 200910054521 A CN200910054521 A CN 200910054521A CN 101945032 B CN101945032 B CN 101945032B
Authority
CN
China
Prior art keywords
file
fragment
point
specified portions
client
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.)
Expired - Fee Related
Application number
CN200910054521.4A
Other languages
Chinese (zh)
Other versions
CN101945032A (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.)
Shanghai Synacast Media Technology Co Ltd
Original Assignee
Shanghai Synacast Media Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Synacast Media Technology Co Ltd filed Critical Shanghai Synacast Media Technology Co Ltd
Priority to CN200910054521.4A priority Critical patent/CN101945032B/en
Publication of CN101945032A publication Critical patent/CN101945032A/en
Application granted granted Critical
Publication of CN101945032B publication Critical patent/CN101945032B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Document down loading method in point to point network and device
Technical field
The present invention relates to P-2-P technology, particularly relate to the file transfer technology in point to point network.
Background technology
In recent years, the service providing Streaming Media to download by P-2-P technology obtains applying more and more widely.Usually, such service all adopts a little to server and dot pattern.Service provider provides streaming media resource download server, after client have selected the required files in stream media downloaded, the fragment of this file not only can be downloaded from server, can also by the characteristic value of this file, the unique corresponding digital digest value of this file normally determined by hash function, search in a network, download the fragment of this file from other client theres of the fragment having this file.
Fig. 1 shows a kind of system block diagram of the prior art.Use the user login services device 10 of client 21, and have selected the files in stream media F1 that a URL(uniform resource locator) is U1, digital digest value is D1 and download, download limit, limit viewing or listen to.In this downloading process, client 21 not only with URL(uniform resource locator) U1 for matching condition is from the fragment of server 10 there download file F1, also to have the fragment of the client there download file F1 of file F1 with digital digest value D1 for matching condition from other point to point network, thus the average speed of download of all clients of download file F1 is improved than under traditional server/customer end pattern.
But, when use client 21 user watch, listen to file F1 time carry out F.F., when being especially fast-forward to the fragment that file F1 not yet downloads, in a kind of prior art, the mode adopted thinks that client 21 has initiated a new download request, the file asked is a new file F2, and it comprises the content from the F.F. pointer of file F1 to latter end.This file F2 corresponds to URL(uniform resource locator) U2 and digital digest value D2.Because F2 is different from F1, so U2 is different from U1, D2 be different from D1.Because exist hardly and the user using the user of client 21 to perform identical forwarding operation, thus there are other clients with client 21 shared file F2 hardly, client 21 can only, with URL(uniform resource locator) U2 for matching condition is from the fragment of server 10 there download file F2, make speed of download reduce substantially.
Therefore, need a kind of method, for the fragment of download file in point to point network, and obtain speed of download higher on average.
Summary of the invention
In point to point network, a larger file can be divided into multiple fragment, carrys out this file shared between peer-entities by exchanging these fragments.A network entity can download the fragment of this file using the filename of a file, digital digest value or other marks as index condition from peer-entities.Usually adopt the digital digest value of a file and/or its fragment as index condition in present point to point network, because have the characteristic of very good " one_to_one corresponding " between file and its digital digest value.The digital digest value of a file is determined by hash function, conventional hash function comprise MD5 function, SHA1 function, etc.
For a complete file F1, such as but not limited to, F1 is an audio/video file.F2 is the file that the part intercepting F1 is formed.Usually, file F2 can be split again, and like this, the fragment of file F2 is just different from the fragment of file F1, therefore, also just cannot obtain file F2 by the fragment of merge file F1.Like this, think that the network entity of download file F2 cannot realize point-to-point file-sharing with the network entity of the fragment having file F1.
FLV file is a kind of existing Streaming File Format.FLV is a binary file, and be made up of file header (FLV header) and some tag, tag can be divided into three classes again: audio stream, video flowing, script flow (keyword or fileinfo and so on), for carrying media content.When carrying out point-to-point transmission to FLV file, the segmentation usually carried out is that each fragment comprises some tag, and such as, each fragment comprises a tag.Herein in the following description carried out for FLV file, be all defaulted as a fragment and just comprise a tag; A fragment is comprised to the situation of multiple tag, those skilled in the art should be able to derive voluntarily according to description herein and draw.A feature of FLV file intercepts a part of continuous print tag from all tag of a FLV file, without the need to making the FLV file that any amendment, only an interpolation file header can form another identifiable design, can play to this part continuous print tag.
Such as shown in Fig. 2, FLV file F1 include file head FH and multiple fragment P 1to P n+m, each fragment comprises a tag; Intercept Partial Fragment wherein, such as fragment P nto P n+m, add file header FH, FLV file F2 can be formed.This feature of FLV file, makes the network entity thinking download file F2 can realize point-to-point file-sharing with the network entity of the fragment having file F1.
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 first file; C. according to the first match parameter of the first file, from point to point network, the fragment of described specified portions is downloaded; D. by discernible for the composition at least partially in the fragment of described specified portions one the second file.
According to a second aspect of the invention, provide the file downloading device in a kind of network entity of point to point network, comprising: the first determining device, for determining the fragment of a specified portions of first file; Fragment download apparatus, for the first match parameter according to the first file, downloads the fragment of described specified portions from point to point network; Combination of files device, by discernible for the composition at least partially in the fragment of described specified portions one the second file.
According to a third aspect of the invention we, provide a kind of user terminal, it comprises the file downloading device of second aspect present invention.
According to a forth aspect of the invention, provide a kind of computer-readable storage medium, this medium stores and can be read by computer and run the computer program of the document down loading method to perform first aspect present invention.
The first file in the present invention and the second file are the file of same form, the such as files in stream media of FLV form.Those skilled in the art will be understood that the file with FLV file with the extended formatting of similar feature 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 download file.
Accompanying drawing explanation
By reading the detailed description done non-limiting example referring to accompanying drawing, other features, objects and advantages of the present invention will become more obvious.
Fig. 1 shows a kind of system block diagram of the prior art;
Fig. 2 shows the stepwise schematic views 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 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 file download process according to an embodiment of the invention;
Fig. 8 shows the structured flowchart of the file downloading device in the network entity of point to point network according to an embodiment of the invention;
Wherein, same or analogous Reference numeral represents 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 Fig. 3 is a network adopting server/customer end constitution, and this is a kind of network architecture providing the mechanism of Web Video Service usually to adopt at present.System shown in Figure 3 is only exemplary and nonrestrictive, and the present invention also can be applied to the network of other frameworks, such as reciprocity between all entities pure point to point network.
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, network entity mentioned here is a client, namely a computer, and this file download process is performed by the corresponding software in client.
First, in step s 2, client determines the fragment of a specified portions of first file.
Then, in step s3, client, according to the first match parameter of the first file, downloads the fragment of described specified portions from point to point network.
Then, in step s 4 which, client is by discernible for the composition at least partially in the fragment of described specified portions one the second file.
Fig. 5 a to Fig. 5 c shows the schematic diagram of the relative users operation in 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.Such as shown in Fig. 2, this file F1 is a FLV file, include file head FH and multiple fragment P 1to P n+m, each fragment comprises a tag.Server 10 provides the file download service based on HTML (Hypertext Markup Language) (HTTP), comprising file F1.Client 21, but also can from point to point network not only from the fragment of server 10 download file F1, such as, download the fragment of the first file F1 from client 22, client 23.
First, client 21 obtains a segmentation indication information of the first file F1.
Particularly, client 21 is at download first file F1, and user is while watch the first file F1 by the network player in client 21.Such as shown in Fig. 5 a, the playing progress rate pointer 51 in playing progress rate display window 50 is used to indicate current playing progress rate, and such as current schedules is g1 (usually using time representation), the current part downloaded of dot-hatched region representation.If drag playing progress rate pointer 51 at dot-hatched intra-zone, still can play smoothly.
When playing progress rate pointer 51 is dragged to the position outside dot-hatched region by user, such as, g2 position in Fig. 5 b, namely user wishes the remainder continuing viewing first file F1 from the time of g2 representative, the segmentation indication information that client 21 will obtain according to the operation of user about the first file F1.Usually, this segmentation indication information comprises the information relevant with the time representated by new progress g2.
Then, in step s 2, client 21 will determine the fragment of a specified portions of the first file F1 according to segmentation indication information.
Particularly, the time representated by new progress g2 corresponds to fragment P n-1, client 21 can by fragment P nto P n+mbe defined as the fragment of specified portions, such as, shown in Fig. 5 b, also can by fragment P n-1to P n+mbe defined as the fragment of specified portions, such as, shown in Fig. 5 c.
Then, in step s3, client 21, by the first match parameter according to the first file F1, downloads the fragment of specified portions from point to point network.
According to some embodiments of the present invention, particularly, first match parameter of the first file F1 adopts hash function to be the digital digest value D1 that it is determined, client 21 downloads the fragment of specified portions from point to point network as index matching condition according to the digital digest value D1 of the first file F1, such as fragment P nto P n+m.Such as, the fragment that client 21 is downloaded can 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 " one_to_one corresponding " between file and its digital digest value, the accuracy of downloading contents can be ensured.Those skilled in the art will be understood that the mode not emphasis of the present invention of the foundation of the index relative table of point to point network file and its digital digest value, maintenance and use, 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 downloads the fragment of specified portions from point to point network as index matching condition according to the filename of the first file F1, such as fragment P nto P n+m.Certainly, other parameters can also be adopted as first match parameter of the first file F1.
According to some embodiments of the present invention, also comprise in step S3: client 21, according to second match parameter of the first file F1, downloads the fragment of specified portions from server 10.
Particularly, second match parameter of the first file F1 is its URL(uniform resource locator) U1 in server 10.Client 21 downloads the fragment of specified portions according to the URL(uniform resource locator) U1 of the first file F1 from server 10, such as fragment P nto P n+m.Certainly, second match parameter of the first file F1 also can adopt other parameters.
Then, in step s 4 which, client 21 is by discernible for the composition at least partially in the fragment of specified portions one the second file.
Particularly, such as, shown in Fig. 5 b, the fragment of specified portions comprises fragment P nto P n+m.Client 21 can by fragment P nto P n+mcombine in order, and add files head FH, form discernible second file F2, the second file F2 is also a FLV file.
Possible situation is, client 21 has not also downloaded all fragments of specified portions, and that has such as downloaded only has fragment P n, fragment P n+1(m > 2).Then client 21 can by fragment P n, P n+1combine in order, and add files head FH, form discernible second file F2.
Scene in the present embodiment is that user is by the network player viewing FLV file in client 21.Therefore, a step is also comprised after step s4: the second file F2 is supplied to network player by client 21.Like this, user continues the content of viewing first file F1 remainder from the time representated by new progress g2.Because the fragment of the specified portions of the first file F1, namely correspond to the fragment P of the first file F1 remainder content (that is content of the second file F2) nto P n+mcan be downloaded from network by P-2-P technology, so can obtain higher speed of download, user can watch the content of the first file F1 remainder soon glibly after completing the operation dragging playing progress rate pointer, thus the Quality of experience of user is improved.
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 Fig. 6 is a pure point to point network, and such network configuration is only exemplary and nonrestrictive.
Fig. 7 shows the schematic diagram of the relative users operation in 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 that a user downloads a part of the first file F1 by client 25.Such as shown in Fig. 2, this file F1 is a FLV file, include file head FH and multiple fragment P 1to P n+m, each fragment comprises a tag.Client 25 can from point to point network, such as, download the fragment of the first file F1 from client 26, client 27.
In step s 2, client 25 will determine the fragment of a specified portions of the first file F1.
Particularly, client 25 can know file (time) length of the first file F1 by retrieval.Such as shown in Fig. 7, file size display window 60 in client 25, can be provided to show the length of whole first file F1.Also comprise the first intercepting pointer 61 and second in file size display window 60 and intercept pointer 62, its initial default location can be arranged at beginning and the end of file size display window 60 respectively.User can intercept by dragging the first intercepting pointer 61 and second fragment that pointer 62 determines specified portions.Such as, the first intercepting pointer 61 is dragged to the t1 moment, the second intercepting pointer 62 is dragged to the t2 moment by user.The t1 moment correspond to fragment P 2, the t2 moment correspond to fragment P n+1, client 25 can by fragment P 2to P n+1be defined as the fragment of specified portions, such as, shown in Fig. 7.
Or client 25 can provide input window, inputted by user and intercept start time and intercept end time.Such as, the intercepting start time of user's input is t1, the intercepting end time of input is t2.The t1 moment correspond to fragment P 2, the t2 moment correspond to fragment P n+1, client 25 can by fragment P 2to P n+1be defined as the fragment of specified portions, such as, shown in Fig. 7.
Then, in step s3, client 25, by the first match parameter according to the first file F1, downloads the fragment of specified portions from point to point network.
According to some embodiments of the present invention, particularly, first match parameter of the first file F1 adopts hash function to be the digital digest value D1 that it is determined, client 25 downloads the fragment of specified portions from point to point network as index matching condition according to the digital digest value D1 of the first file F1, such as fragment P 2to P n+1.Such as, the fragment that client 25 is downloaded can 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 " one_to_one corresponding " between file and its digital digest value, the accuracy of downloading contents can be ensured.Those skilled in the art will be understood that the mode not emphasis of the present invention of the foundation of the index relative table of point to point network file and its digital digest value, maintenance and use, 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 downloads the fragment of specified portions from point to point network as index matching condition according to the filename of the first file F1, such as fragment P 2to P n+1.Certainly, other parameters can also be adopted as first match parameter of the first file F1.
Then, in step s 4 which, client 25 is by discernible for the composition at least partially in the fragment of specified portions one the second file.
Particularly, such as, shown in Fig. 7, the fragment of specified portions comprises fragment P 2to P n+1.Client 25 can by fragment P 2to P n+1combine in order, and add files head FH, form discernible second file F2, the second file F2 is also a FLV file.Because the fragment of the specified portions of the first file F1, namely correspond to the fragment P of the content of the second file F2 2to P n+1, can be downloaded from network by P-2-P technology, so higher speed of download can be obtained.
Possible situation is, client 25 has not also downloaded all fragments of specified portions, and that has such as downloaded only has fragment P 2, fragment P 3(n > 2).Then client 25 can by fragment P 2, P 3combine in order, and add files head FH, form discernible second file F2.
The possible application scenarios of of this embodiment is that user has gained some understanding for the content of the first file F1, and only wishes to download essential part wherein.
Fig. 8 shows the structured flowchart of the file downloading device in the network entity of point to point network according to an embodiment of the invention.As shown in the figure, file downloading device 200 comprises: segmentation indication information acquisition device 201, first determining device 202, fragment download apparatus 203, combination of files device 204, first generator 205.In some other embodiment of the present invention, file downloading device 200 comprises the part in 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.Such as shown in Fig. 2, this file F1 is a FLV file, include file head FH and multiple fragment P 1to P n+m, each fragment comprises a tag.Server 10 provides the file download service based on HTML (Hypertext Markup Language) (HTTP), comprising file F1.Client 21, but also can from point to point network not only from the fragment of server 10 download file F1, such as, download the fragment of the first file F1 from client 22, client 23.File downloading device 200 is typically arranged in client 21, comprising: segmentation indication information acquisition device 201, first determining device 202, fragment download apparatus 203, combination of files device 204, first generator 205.
First, the segmentation indication information acquisition device 201 in client 21 is by one of acquisition first file F1 segmentation indication information.
Particularly, client 21 is at download first file F1, and user is while watch the first file F1 by the network player in client 21.Such as shown in Fig. 5 a, the playing progress rate pointer 51 in playing progress rate display window 50 is used to indicate current playing progress rate, and such as current schedules is g1 (usually using time representation), the current part downloaded of dot-hatched region representation.If drag playing progress rate pointer 51 at dot-hatched intra-zone, still can play smoothly.
When playing progress rate pointer 51 is dragged to the position outside dot-hatched region by user, such as, g2 position in Fig. 5 b, namely user wishes the remainder continuing viewing first file F1 from the time of g2 representative, the segmentation indication information that segmentation indication information acquisition device 201 will obtain according to the operation of user about the first file F1.Usually, this segmentation indication information comprises the information relevant with the time representated by new progress g2.
Then, the first determining device 202 in client 21 will determine the fragment of a specified portions of the first file F1 according to segmentation indication information.
Particularly, the time representated by new progress g2 corresponds to fragment P n-1, the first determining device 202 can by fragment P nto P n+mbe defined as the fragment of specified portions, such as, shown in Fig. 5 b, also can by fragment P n-1to P n+mbe defined as the fragment of specified portions, such as, shown in Fig. 5 c.
Then, the fragment download apparatus 203 in client 21, by the first match parameter according to the first file F1, downloads the fragment of specified portions from point to point network.
According to some embodiments of the present invention, particularly, first match parameter of the first file F1 adopts hash function to be the digital digest value D1 that it is determined, fragment download apparatus 203 downloads the fragment of specified portions from point to point network as index matching condition according to the digital digest value D1 of the first file F1, such as fragment P nto P n+m.Such as, the fragment that fragment download apparatus 203 is downloaded can 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 " one_to_one corresponding " between file and its digital digest value, the accuracy of downloading contents can be ensured.Those skilled in the art will be understood that the mode not emphasis of the present invention of the foundation of the index relative table of point to point network file and its digital digest value, maintenance and use, 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 downloads the fragment of specified portions from point to point network as index matching condition according to the filename of the first file F1, such as fragment P nto P n+m.Certainly, other parameters can also be adopted as first match parameter of the first file F1.
According to some embodiments of the present invention, fragment download apparatus 203, also by the second match parameter according to the first file F1, downloads the fragment of specified portions 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 downloads the fragment of specified portions according to the URL(uniform resource locator) U1 of the first file F1 from server 10, such as fragment P nto P n+m.Certainly, second match parameter of the first file F1 also can adopt other parameters.
Then, the combination of files device 204 in client 21 is by discernible for the composition at least partially in the fragment of specified portions one the second file.
Particularly, such as, shown in Fig. 5 b, the fragment of specified portions comprises fragment P nto P n+m.Combination of files device 204 can by fragment P nto P n+mcombine in order, and add files head FH, form discernible second file F2, the second file F2 is also a FLV file.
Possible situation is, fragment download apparatus 203 has not also downloaded all fragments of specified portions, and that has such as downloaded only has fragment P n, fragment P n+1(m > 2).Then combination of files device 204 can by fragment P n, P n+1combine in order, and add files head FH, form discernible second file F2.
Then, the second file F2 is supplied to network player by the first generator 205 in client 21.Like this, user just can continue the content of viewing first file F1 remainder from the time representated by new progress g2.Because the fragment of the specified portions of the first file F1, namely correspond to the fragment P of the first file F1 remainder content (that is content of the second file F2) nto P n+mcan be downloaded from network by P-2-P technology, so can obtain higher speed of download, user can watch the content of the first file F1 remainder soon glibly after completing the operation dragging playing progress rate pointer, thus the Quality of experience of user is improved.
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 that a user downloads a part of the first file F1 by client 25.Such as shown in Fig. 2, this file F1 is a FLV file, include file head FH and multiple fragment P 1to P n+m, each fragment comprises a tag.Client 25 can from point to point network, such as, download the fragment of the first file F1 from client 26, client 27.File downloading device 200 is typically arranged in client 25, comprising: the first determining device 202, fragment download apparatus 203, combination of files device 204.
First, the first determining device 202 in client 25 will determine the fragment of a specified portions of the first file F1.
Particularly, the file downloading device 200 in client 25 can know file (time) length of the first file F1 by retrieval.Such as shown in Fig. 7, file size display window 60 in file downloading device 200, can be provided to show the length of whole first file F1.Also comprise the first intercepting pointer 61 and second in file size display window 60 and intercept pointer 62, its initial default location can be arranged at beginning and the end of file size display window 60 respectively.User can intercept by dragging the first intercepting pointer 61 and second fragment that pointer 62 determines specified portions.Such as, the first intercepting pointer 61 is dragged to the t1 moment, the second intercepting pointer 62 is dragged to the t2 moment by user.The t1 moment correspond to fragment P 2, the t2 moment correspond to fragment P n+1, the first determining device 202 can by fragment P 2to P n+1be defined as the fragment of specified portions, such as, shown in Fig. 7.
Or file downloading device 200 can provide input window, inputted by user and intercept start time and intercept end time.Such as, the intercepting start time of user's input is t1, the intercepting end time of input is t2.The t1 moment correspond to fragment P 2, the t2 moment correspond to fragment P n+1, the first determining device 202 can by fragment P 2to P n+1be defined as the fragment of specified portions, such as, shown in Fig. 7.
Then, the fragment download apparatus 203 in client 25, by the first match parameter according to the first file F1, downloads the fragment of specified portions from point to point network.
According to some embodiments of the present invention, particularly, first match parameter of the first file F1 adopts hash function to be the digital digest value D1 that it is determined, fragment download apparatus 203 downloads the fragment of specified portions from point to point network as index matching condition according to the digital digest value D1 of the first file F1, such as fragment P 2to P n+1.Such as, the fragment that the fragment download apparatus 203 in client 25 is downloaded can 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 " one_to_one corresponding " between file and its digital digest value, the accuracy of downloading contents can be ensured.Those skilled in the art will be understood that the mode not emphasis of the present invention of the foundation of the index relative table of point to point network file and its digital digest value, maintenance and use, 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 client 25 downloads the fragment of specified portions from point to point network as index matching condition according to the filename of the first file F1, such as fragment P 2to P n+1.Certainly, other parameters can also be adopted as first match parameter of the first file F1.
Then, the combination of files device 204 in client 25 is by discernible for the composition at least partially in the fragment of specified portions one the second file.
Particularly, such as, shown in Fig. 7, the fragment of specified portions comprises fragment P 2to P n+1.Combination of files device 204 in client 25 can by fragment P 2to P n+1combine in order, and add files head FH, form discernible second file F2, the second file F2 is also a FLV file.Because the fragment of the specified portions of the first file F1, namely correspond to the fragment P of the content of the second file F2 2to P n+1, can be downloaded from network by P-2-P technology, so higher speed of download can be obtained.
Possible situation is, fragment download apparatus 203 has not also downloaded all fragments of specified portions, and that has such as downloaded only has fragment P 2, fragment P 3(n > 2).Then combination of files device 204 can by fragment P 2, P 3combine in order, and add files head FH, form discernible second file F2.
The possible application scenarios of of this embodiment is that user has gained some understanding for the content of the first file F1, and only wishes to download essential part wherein.
The specified portions of the first file in above-described embodiment is all multiple continuous print fragments.Those skilled in the art will be understood that the specified portions of the first file F1 also can be incomplete continuous print fragment, and such as, specified portions can comprise fragment P 2, P 3and fragment P 7, P 8.(n+m≥8)。
In above-described embodiment, each fragment comprises a tag, and this is only exemplary and nonrestrictive.A fragment is comprised to the situation of multiple tag, those skilled in the art should be able to derive voluntarily according to description herein and draw.
In above-described embodiment, the first file and the second file are all files in stream media of FLV form.Those skilled in the art will be understood that the file with FLV file with the extended formatting of similar feature also goes for the present invention.
Various devices alleged in the present invention, can be software function module, also can be hardware module, can also be the hardware module being integrated with software function.
Although illustrate in detail in accompanying drawing and aforesaid description and describe the present invention, it is illustrative and exemplary for should thinking that this is illustrated and describes, instead of restrictive; The invention is not restricted to above-mentioned execution mode.
The those skilled in the art of the art can pass through research specification, disclosed content and accompanying drawing and appending claims, understand and implement other changes to the execution mode disclosed.In the claims, word " comprises " element and step of not getting rid of other, and wording " one " does not get rid of plural number.In the practical application of invention, the function of the multiple technical characteristics quoted during a part possibility enforcement of rights requires.Any Reference numeral in claim should not be construed as the restriction to scope.

Claims (21)

1. the document down loading method in the network entity of point to point network, said method comprising the steps of:
B. the fragment of a specified portions of first file is determined;
C. according to the first match parameter of the first file, from point to point network, retrieve the client of the fragment with described specified portions, and download the fragment of described specified portions from described client;
D. by discernible for the composition at least partially in the fragment of described specified portions one the second file.
2. method according to claim 1, is characterized in that, also comprises step:
A. a segmentation indication information of the first file is obtained;
Determine the fragment of the described specified portions of the first file according to described segmentation indication information in described step B.
3. method according to claim 1, is characterized in that, described first match parameter adopts hash function to be the digital digest value that the 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 the second match parameter of the 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 adding a file header at least partially in the fragment of described specified portions, thus form described second file.
8. method according to claim 1, is characterized in that, also comprises step:
E. described second file is supplied to network player.
9. method according to any one of claim 1 to 8, 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.
File downloading device in the network entity of 11. 1 kinds of point to point networks, comprising:
First determining device, for determining the fragment of a specified portions of first file;
Fragment download apparatus, for the first match parameter according to the first file, retrieves the client of the fragment with described specified portions, and download the fragment of described specified portions from described client from point to point network;
Combination of files device, by discernible for the composition at least partially in the fragment of described specified portions one the second file.
12. file downloading devices according to claim 11, is characterized in that, also comprise:
Split knowledge information acquisition device, for obtaining a segmentation indication information of the first file;
Described first determining device determines the fragment of the described specified portions of the first file according to described segmentation indication information.
13. file downloading devices according to claim 11, is characterized in that, described first match parameter adopts hash function to be the digital digest value that the first file is determined.
14. file downloading devices according to claim 13, is characterized in that, described hash function is MD5 function or SHA1 function.
15. file downloading devices according to claim 11, is characterized in that, described fragment download apparatus also for: according to the second match parameter of the first file, download the fragment of described specified portions from server.
16. file downloading devices according to claim 15, is characterized in that, described second match parameter is the URL(uniform resource locator) of described first file.
17. file downloading devices according to claim 11, is characterized in that, described combination of files device also for: for adding a file header at least partially in the fragment of described specified portions, thus form described second file.
18. file downloading devices according to claim 11, is characterized in that, also comprise:
First generator, for being supplied to network player by described second file.
19., according to claim 11 to the file downloading device according to any one of 18, is characterized in that, described first file is a files in stream media.
20. file downloading devices according to claim 19, is characterized in that, described first file is a flv file.
21. 1 kinds of user terminals, is characterized in that, comprise the file downloading device according to any one of claim 11 to 20.
CN200910054521.4A 2009-07-07 2009-07-07 File downloading method and device in point to point network Expired - Fee Related CN101945032B (en)

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 CN101945032A (en) 2011-01-12
CN101945032B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9420534B2 (en) * 2011-06-28 2016-08-16 Telefonaktiebolaget Lm Ericsson (Publ) Technique for managing streaming media traffic at a network entity
CN103269352A (en) * 2012-12-07 2013-08-28 北京奇虎科技有限公司 Point-to-point (P2P) file downloading method and device
CN103731511B (en) * 2014-01-26 2017-02-22 飞狐信息技术(天津)有限公司 Data acquiring method and data acquiring device in P2P (Peer-to-Peer) system

Citations (3)

* Cited by examiner, † Cited by third party
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
CN101217638A (en) * 2007-12-28 2008-07-09 深圳市迅雷网络技术有限公司 A downloading method, system and device of video file fragmentation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197840A (en) * 2007-12-29 2008-06-11 深圳市迅雷网络技术有限公司 Method, system and device for downloading and storing files and method for generating identification

Patent Citations (3)

* Cited by examiner, † Cited by third party
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 深圳市迅雷网络技术有限公司 A downloading method, system and device of video file fragmentation

Also Published As

Publication number Publication date
CN101945032A (en) 2011-01-12

Similar Documents

Publication Publication Date Title
KR101636108B1 (en) Methods and arrangements for http media stream distribution
US8589368B1 (en) Media players and download manager functionality
KR101501860B1 (en) A method of targeted ad insertion using http live streaming protocol
US8156435B2 (en) Systems and methods to select media content
AU2014327043B2 (en) Dynamic chunk manipulation for streaming mixed live and on-demand media: application programming interface
US8959241B2 (en) Method and apparatus for performing server-side splicing for live streaming media
EP2490445B1 (en) Method, terminal and server for implementing trickplay
US20140040026A1 (en) Systems and methods for including advertisements in streaming content
US9392335B2 (en) Fragmented content
US10015222B2 (en) Systems and methods for selective retrieval of adaptive bitrate streaming media
US20120254755A1 (en) Systems and Methods to Select Media Content
US10149020B2 (en) Method for playing a media stream in a browser application
EP2494482B1 (en) Assembling streamed content for on-demand presentation
CN105339922A (en) Personal over-the-top network video recorder
US9356985B2 (en) Streaming video to cellular phones
US9953034B1 (en) System and method for sharing trimmed versions of digital media items
CN100568958C (en) A kind of based on network remote editing method for program
JP2008301442A (en) Motion picture sharing system, user terminal equipment, and program
CN108924630B (en) Method for displaying cache progress and playing device
CN108924606B (en) Streaming media processing method and device, storage medium and electronic device
CN101945032B (en) File downloading method and device in point to point network
US7886068B1 (en) Management of streaming media playlists
JP2008118468A (en) Content presenting server and content presenting program
US10101801B2 (en) Method and apparatus for prefetching content in a data stream
JP5802288B2 (en) Video distribution system and video distribution method

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

Granted publication date: 20150513

Termination date: 20210707

CF01 Termination of patent right due to non-payment of annual fee