CN101282363A - Method and system for establishing seed and downloading files in equity coupling network - Google Patents

Method and system for establishing seed and downloading files in equity coupling network Download PDF

Info

Publication number
CN101282363A
CN101282363A CNA2008100983534A CN200810098353A CN101282363A CN 101282363 A CN101282363 A CN 101282363A CN A2008100983534 A CNA2008100983534 A CN A2008100983534A CN 200810098353 A CN200810098353 A CN 200810098353A CN 101282363 A CN101282363 A CN 101282363A
Authority
CN
China
Prior art keywords
seed
file data
client
file
residue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2008100983534A
Other languages
Chinese (zh)
Inventor
华有为
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNA2008100983534A priority Critical patent/CN101282363A/en
Publication of CN101282363A publication Critical patent/CN101282363A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention embodiment discloses seed creation, file download method and system in peer-to-peer link network, which comprises: setting segment file data length; if size of file data obtained is equal to the segment file data length, creating a seed aiming at the obtained file data; publishing the seed to network; clients acquire the seed from network and check the obtained file data according to the seed download. After the invention embodiment is applied, the data publisher can improve speed of seed file publishing, and data acquiring speed for the data receiver can also be improved, spare time can be reduced, which strengths user experience.

Description

Equity connects establishing seed, document down loading method and the system in the network
Technical field
(peer to peer, P2P) technical field more specifically, relate to establishing seed, document down loading method and system in the equity connection network to the present invention relates to the equity connection.
Background technology
The evolution of computer networks evolutionary process is swing between concentrated and distribution.Early stage computer use pattern is that numerous users share mainframe computer, has developed personal computer later on, moves towards to distribute from concentrating.There is analogue on the internet, begins to adopt client computer (browser)-server mode, use the server of concentrating on the website.Further develop and will move towards distributed, the server of concentrating will become distribution, each user terminal be client computer be again server, Here it is that equity connects (peer to peer, P2P) pattern.
In recent years, on the Internet P2P business development rapid, become the main flow of broadband internet business.The P2P technology is interosculated into a network with each user, shares bandwidth wherein, the common information of handling wherein.Different with traditional client-server pattern, in the P2P working method, each client terminal be client computer be again server.With the sharing download file is example, downloads the fragment that each user terminal among numerous users of same file only needs file in download, and each user intercourses fragment then, and finally each user can both obtain complete file.
In the prior art, data publisher once creates the P2P seed file according to the complete content of original document, and preserves this P2P seed file to seed Download Server or other clients by network.When having, client downloads when needing, from seed Download Server or this seed file of other client downloads, and then according to the content of seed file, the original file data that verification is downloaded.
Yet, need the complete original document could to create seed file in this technology, this has just reduced data publisher and has issued the speed that seed file and data receiver obtain data.And P2P client must download and could begin that P2P shares and information exchange behind the complete seed file in this technology, and the time that P2P shares will be longer, thereby also reduced user experience.
Summary of the invention
The embodiment of the invention proposes the establishing seed method in a kind of equity connection network, and data publisher can improve the speed of issue seed file.
The embodiment of the invention has also proposed the document down loading method in a kind of equity connection network, and the data receiver can improve the speed of obtaining data.
The embodiment of the invention has also proposed the file download system in a kind of equity connection network, reduces the time of sharing, and strengthens user experience.
The technical scheme of the embodiment of the invention is as follows:
A kind of equity connects the establishing seed method in the network, and this method comprises:
The segmental file data length is set;
When the file data size of obtaining equals described segmental file data length, create and obtained the seed of file data at this;
Described seed is published to network side.
A kind of equity connects the document down loading method in the network, sets in advance the segmental file data length, and this method also comprises:
When the file data size of obtaining equals described segmental file data length, create and obtained the seed of file data, and described seed is published to network side at this;
Client is obtained described seed from network side, and this has obtained file data to download verification according to described seed.
A kind of equity connects the file download system in the network, and this system comprises first client, second client and seed Download Server, wherein:
First client during segmental file data length that is used for equaling to set in advance when the file data size of obtaining, is created and has been obtained the seed of file data at this, and described seed is published to the seed Download Server;
The seed Download Server is used to store seed;
Second client is used for obtaining seed from the seed Download Server, and this has obtained file data to download verification according to described seed.
In technique scheme, the segmental file data length at first is set, then when the file data size of obtaining equals the segmental file data length, establishment has been obtained the seed of file data and the seed of creating has been published to network side at this, client is obtained seed from network side again, and this has obtained file data to download verification according to seed.This shows, use after the embodiment of the invention, when arriving a certain size, the file data that obtains to create and to report seed, do not need complete original document could create seed file, therefore the data publisher can improve the speed of issue seed file, and the data receiver also can improve the speed of obtaining data, and can reduce and share the time, strengthens user experience.
Description of drawings
Fig. 1 is according to the document down loading method flow chart in the equity connection network of the embodiment of the invention;
Fig. 2 is according to the file download system structure chart in the equity connection network of the embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention express clearlyer, the present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
Fig. 1 is according to the document down loading method flow chart in the equity connection network of the embodiment of the invention.
As shown in Figure 1, this method comprises two parts, and step 101~step 103 is that equity connects the establishing seed method flow in the network.Behind the seed that step 104 is created according to step 101~step 103 for client downloads, the flow process that execute file is downloaded.
Step 101: the segmental file data length at first is set.
Data publisher expects that the file data of issuing is generally bigger, sets in advance the segmental file data length herein.Data publisher can be the data distribution server in the P2P network, also can be common P2P client.Generally stored data file in the data distribution server, do not needed to obtain by network the data file of expectation issue, therefore the data publisher is preferably the P2P client herein.
According to the difference of application scenario, can adjust the concrete size of segmental file data length.Such as, if the file data of expectation issue is very big,, can suitably improve the segmental file data length in order to reduce the segmentation seed number.
Step 102~step 103: when the file data size of obtaining equals described segmental file data length, create and obtained the seed of file data, and described seed is published to network side at this.
Data publisher's expectation is published to network side with the complete file data.Owing to reasons such as network download speed, if issue seed file again after waiting the pending data publisher to obtain the complete file data, this will reduce data publisher and data receiver's speed.Therefore, as long as the data publisher has got access to the data file of segmental file data length, just should allow the data publisher to create and obtain the seed of file data at this.Such as, suppose that whole file size is 215,000,000 (M), the segmental file data length that sets in advance is 10M, so after as long as the data publisher receives the data of 10M, just issue is at the seed of these 10M data and be provided to network side.Particularly, after data publisher receives the data of 10M at every turn, just issue is at the seed of these 10M data and be provided to network side, to the last all data seeds are provided to network side, data publisher creates with the process of issue seed and can carry out synchronously with the process of client downloads file data, thereby can significantly improve the speed of obtaining data, reduce the time of sharing, strengthen user experience.
In step 102, establishment can comprise at the seed that obtains file data: at first carry out piecemeal to obtaining file data, generate Hash (HASH) value at each piecemeal file data respectively then; Make up according to each cryptographic Hash that generates again and describedly obtained the seed of file data at this.Can also comprise present common information such as the whole size of data file, piecemeal number in the seed file.
In addition, when the residue file data size of also not obtaining during less than the segmental file data length, data publisher continues to obtain the residue file data, and creates the seed at this residue file data, and the seed that will remain file data again is published to network side.Such as, accept example, suppose that whole file size is 215,000,000 (M), through 21 times issue seed, the residue file size that do not create seed this moment is 5M, because residue file data size (5M) is less than segmental file data length (10M), this moment, the data publisher continued to obtain the residue file data of this 5M size, and directly create the seed that remains file data at this, and be published to network side, thus intactly 215,000,000 files are made seed and are published to network side.
So far, finished the establishing seed flow process in the reciprocity connection network, thereby can realize that the initial data of obtaining as the data publisher arrives certain size and can create seed.
The seed that client downloads is created according to step 101~step 103 is described below, and the flow process of execute file download.
Step 104: client is obtained described seed from network side, and this has obtained file data to download verification according to described seed.
At first, client is obtained seed from network side, then according to these seed file in download data.Since the seed that obtains from network side at be the file data (being the file data of segmental file data length) of part, so this seed file describes is the fileinfo of part.Client judges whether according to this seed can the verification data downloaded, if could would carry out verification, if not all right then client is obtained another segmentation seed from network side.Such as, client can determine whether according to the block message in the seed file carrying out verification.In the prior art, block message is normally complete.In embodiments of the present invention, according to a preconcerted arrangement, the block message in the seed file can various forms such as be spaced for complete 0, complete 1,1 and 0.After client is obtained seed file,, recognize that then this seed file corresponding download file is imperfect, therefore will remove to obtain another seed from network side if find the form of block message for agreement.Such as, suppose that the agreement block message is to represent that this seed file corresponding download file was imperfect at complete 0 o'clock, then when the client terminal to discover block message complete 0 the time, obtain another seed from network side.
The embodiment of the invention has also proposed the file download system in a kind of equity connection network.
Fig. 2 is according to the file download system structure chart in the equity connection network of the embodiment of the invention.
As shown in Figure 2, this system comprises first client 201, second client 202 and seed Download Server 203.
First client 201 during the segmental file data length that is used for equaling to set in advance when the file data size of obtaining, is created and has been obtained the seed of file data at this, and described seed is published to seed Download Server 203;
Seed Download Server 203 is used to store seed;
Second client 202 is used for obtaining seed from seed Download Server 203, and this has obtained file data to download verification according to described seed.
In specific implementation, seed Download Server 203 can integrate with first client 201, also can integrate with second client 202.Seed Download Server 203 can also be arranged in other any entity of peer-to-peer network, and the embodiment of the invention is to this and indefinite.
Wherein, particularly, first client 201 is used for the described file data that obtained is carried out piecemeal, generates cryptographic Hash at each piecemeal file data respectively, and makes up according to each cryptographic Hash that generates and describedly to have obtained the seed of file data at this.
Further, first client 201, be used for when the residue file data size of also not obtaining during less than described segmental file data length, obtain described residue file data, establishment remains the seed of file data at this, and the seed of described residue file data is published to seed Download Server 203;
Described second client 202 is used for obtaining from seed Download Server 203 seed of described residue file data, and downloads the described residue file data of verification according to described residue file data seed.
In sum, in embodiments of the present invention, the segmental file data length at first is set, then when the file data size of obtaining equals the segmental file data length, establishment has been obtained the seed of file data and the seed of creating has been published to network side at this, client is obtained seed from network side again, and this has obtained file data to download verification according to seed.This shows, use after the embodiment of the invention, when arriving a certain size, the file data that obtains to create and to report seed, therefore the data publisher can improve the speed of issue seed file, and the data receiver also can improve the speed of obtaining data, and can reduce and share the time, strengthen user experience.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1, a kind of equity connects the establishing seed method in the network, it is characterized in that this method comprises:
The segmental file data length is set;
When the file data size of obtaining equals described segmental file data length, create and obtained the seed of file data at this;
Described seed is published to network side.
2, equity according to claim 1 connects the establishing seed method in the network, it is characterized in that described establishment comprises at the seed that obtains file data:
The described file data that obtained is carried out piecemeal;
Generate Hash HASH value at each piecemeal file data respectively;
Make up according to each cryptographic Hash that generates and describedly to have obtained the seed of file data at this.
3, equity according to claim 1 and 2 connects the establishing seed method in the network, it is characterized in that this method further comprises:
When the residue file data size of also not obtaining during, obtain described residue file data, and create seed at this residue file data less than described segmental file data length;
The seed of described residue file data is published to network side.
4, a kind of equity connects the document down loading method in the network, it is characterized in that set in advance the segmental file data length, this method also comprises:
When the file data size of obtaining equals described segmental file data length, create and obtained the seed of file data, and described seed is published to network side at this;
Client is obtained described seed from network side, and this has obtained file data to download verification according to described seed.
5, equity according to claim 4 connects the document down loading method in the network, it is characterized in that described establishment comprises at the seed that obtains file data:
The described file data that obtained is carried out piecemeal;
Generate cryptographic Hash at each piecemeal file data respectively;
Make up according to each cryptographic Hash that generates and describedly to have obtained the seed of file data at this.
6, according to the document down loading method in claim 4 or the 5 described equity connection networks, it is characterized in that this method further comprises:
When the residue file data size of also not obtaining during, obtain described residue file data, and create seed at this residue file data less than described segmental file data length;
The seed of described residue file data is published to network side;
Client is obtained the seed of described residue file data from network side, and downloads the described residue file data of verification according to described residue file data seed.
7, according to the document down loading method in claim 4 or the 5 described equity connection networks, it is characterized in that this method further comprises:
Client downloads is described obtained file data after, in the time can not utilizing these seed verification file data, obtain other segmental file data seed from network side.
8, a kind of equity connects the file download system in the network, it is characterized in that this system comprises first client, second client and seed Download Server, wherein:
First client during segmental file data length that is used for equaling to set in advance when the file data size of obtaining, is created and has been obtained the seed of file data at this, and described seed is published to the seed Download Server;
The seed Download Server is used to store seed;
Second client is used for obtaining seed from the seed Download Server, and this has obtained file data to download verification according to described seed.
9, equity according to claim 8 connects the file download system in the network, it is characterized in that,
Described first client is used for the described file data that obtained is carried out piecemeal, generates cryptographic Hash at each piecemeal file data respectively, and makes up according to each cryptographic Hash that generates and describedly to have obtained the seed of file data at this.
10, according to Claim 8 or 9 described equities connect file download systems in the networks, it is characterized in that,
Described first client, be used for when the residue file data size of also not obtaining during less than described segmental file data length, obtain described residue file data, create seed, and the seed of described residue file data is published to the seed Download Server at this residue file data;
Described second client is used for obtaining from the seed Download Server seed of described residue file data, and downloads the described residue file data of verification according to described residue file data seed.
CNA2008100983534A 2008-05-30 2008-05-30 Method and system for establishing seed and downloading files in equity coupling network Pending CN101282363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100983534A CN101282363A (en) 2008-05-30 2008-05-30 Method and system for establishing seed and downloading files in equity coupling network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100983534A CN101282363A (en) 2008-05-30 2008-05-30 Method and system for establishing seed and downloading files in equity coupling network

Publications (1)

Publication Number Publication Date
CN101282363A true CN101282363A (en) 2008-10-08

Family

ID=40014636

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100983534A Pending CN101282363A (en) 2008-05-30 2008-05-30 Method and system for establishing seed and downloading files in equity coupling network

Country Status (1)

Country Link
CN (1) CN101282363A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263791A (en) * 2011-07-18 2011-11-30 李建成 Method and system for checking resource files
CN102638577A (en) * 2012-03-27 2012-08-15 北京蓝汛通信技术有限责任公司 Method, equipment and system for collecting seed files
CN103297447A (en) * 2012-02-24 2013-09-11 腾讯科技(深圳)有限公司 Resource sharing method and resource sharing equipment
CN104717295A (en) * 2011-03-15 2015-06-17 广州市动景计算机科技有限公司 Method and system for downloading big file from target server through mobile terminal
CN107181774A (en) * 2016-03-09 2017-09-19 伊姆西公司 Data movement between distributive data center

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717295A (en) * 2011-03-15 2015-06-17 广州市动景计算机科技有限公司 Method and system for downloading big file from target server through mobile terminal
CN102263791A (en) * 2011-07-18 2011-11-30 李建成 Method and system for checking resource files
CN103297447A (en) * 2012-02-24 2013-09-11 腾讯科技(深圳)有限公司 Resource sharing method and resource sharing equipment
CN103297447B (en) * 2012-02-24 2019-03-08 腾讯科技(深圳)有限公司 A kind of resource share method and its equipment
CN102638577A (en) * 2012-03-27 2012-08-15 北京蓝汛通信技术有限责任公司 Method, equipment and system for collecting seed files
CN102638577B (en) * 2012-03-27 2014-08-06 北京蓝汛通信技术有限责任公司 Method, equipment and system for collecting seed files
CN107181774A (en) * 2016-03-09 2017-09-19 伊姆西公司 Data movement between distributive data center
CN107181774B (en) * 2016-03-09 2020-11-20 伊姆西Ip控股有限责任公司 Data movement between distributed data centers

Similar Documents

Publication Publication Date Title
CN109471744B (en) Main chain and parallel multi-sub-chain system architecture based on block chain
CN107276765B (en) Processing method and device for consensus in block chain
CN109491758A (en) Docker mirror image distribution method, system, data gateway and computer readable storage medium
CN112235420B (en) Data synchronization method, system and related equipment based on block chain
CN103297447B (en) A kind of resource share method and its equipment
CN103457999A (en) P2P document transmission method based on NDN network architecture
RU2005138840A (en) SYSTEM AND METHOD FOR DOWNLOADING UPDATES
CN101282363A (en) Method and system for establishing seed and downloading files in equity coupling network
CN101651719B (en) Communication system, equalization server and data verification method
CN101635737A (en) Downloading method, system, P2P server and client
CN102594876B (en) The mixing accelerating system of game real time data and more new data
CN103685554A (en) Upgrading method, device and system
CN101848188A (en) Method and device for updating data block checking information
CN1937503A (en) System and method for speeding up webpage content downloading
US10237075B2 (en) Reconstructable content objects
CN103731472A (en) Method and system for downloading files by adopting P2P technology and client-side
CN113190778A (en) Business data pushing method, system, computer equipment and computer storage medium
CN103685496A (en) Transmission method and device of file data
CN1595890B (en) Virtual connectivity with subscribe-notify service
CN101184110A (en) Resource download method, system and device
CN110599269A (en) Bill generation method and device, computer readable storage medium and computer equipment
CN101753572B (en) BitTorrent file pollution method based on anti-blacklist mechanism
CN107613016B (en) File batch downloading method, client, distribution server and system
CN110351362A (en) Data verification method, equipment and computer readable storage medium
WO2009011968A1 (en) Endpoint discriminator in network transport protocol startup packets

Legal Events

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

Open date: 20081008