CN101340401A - Peer-to-peer downloading method - Google Patents

Peer-to-peer downloading method Download PDF

Info

Publication number
CN101340401A
CN101340401A CNA2008103042439A CN200810304243A CN101340401A CN 101340401 A CN101340401 A CN 101340401A CN A2008103042439 A CNA2008103042439 A CN A2008103042439A CN 200810304243 A CN200810304243 A CN 200810304243A CN 101340401 A CN101340401 A CN 101340401A
Authority
CN
China
Prior art keywords
neighbors
peer
data
point
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.)
Pending
Application number
CNA2008103042439A
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CNA2008103042439A priority Critical patent/CN101340401A/en
Publication of CN101340401A publication Critical patent/CN101340401A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a peer-to-peer download technology in network download technologies, in particular to a neighbor node selection method of a peer-to-peer download system. The technical problem needs to be solved by the invention is to provide the peer-to-peer download method which can effectively select the neighbor nodes with higher data exchange efficiency. The peer-to-peer download method comprises the steps: a. neighbor nodes are created by the download system, and the data transmission is started; b. the download system divides all the neighbor nodes into the senior neighbor nodes or the ordinary neighbor nodes according to the data transmission state of the neighbor nodes; c. the ordinary neighbor nodes are deleted by the download system after the completion of the data transmission; the creation operation are carried out on the senior neighbor nodes again by the download system after the completion of the data transmission. The peer-to-peer download method can effectively shorten the time of obtaining shared resources of the download system and improve the utilization rate of network bandwidth.

Description

Point-to-point method for down loading
Technical field
(BitTorrent, BT) download technology specially refer to a kind of neighbors (Peer) system of selection of point-to-point download system to the present invention relates to point-to-point in the network download technology.
Background technology
Each neighbors by BT mode shared resource be the provider of resource also be the resource reciever, undertaken alternately each other between numerous neighborss by the BT agreement, sharing of resource finished in the exchange of the line data of going forward side by side.In traditional BT download system, the BT client successively with get access to each Peer and communicate, if interaction success is then carried out exchanges data, exchange finishes and promptly closes and the communicating by letter of this neighbors, the BT client removes to obtain neighbors once more after a period of time, communicate and data interaction with each neighbors successively again then, so repeatedly till resource downloading is finished.In traditional BT download system, the selection of will communications and data mutual neighbors is had randomness and blindness, there is not memory function, the higher neighbors of data interaction efficient can not be chosen, thereby the speed of higher data exchange can not be guaranteed.
Summary of the invention
Technical problem to be solved by this invention is effectively to choose the point-to-point method for down loading of the higher abutment points of data interaction efficient.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, point-to-point method for down loading is characterized in that, may further comprise the steps:
A, download system are created neighbors, the beginning transfer of data;
B, download system are divided into senior neighbors or common neighbors according to the data transmission state of neighbors with all neighborss;
C, common neighbors promptly are downloaded system-kill after transfer of data finishes; Senior neighbors is after transfer of data finishes, and download system will carry out creation operation to it once more.
Further, the data transmission state of described neighbors is meant the data interaction speed of neighbors.Perhaps, the data transmission state of described neighbors is meant the data upload speed of neighbors.Perhaps, the data transmission state of described neighbors is meant, whether neighbors is whether the data upload speed of seed and neighbors reaches preset value; Satisfying neighbors when the data transmission state of neighbors is seed, or the data upload speed of neighbors reaches preset value, and then download system is provided with it and is senior neighbors.
The invention has the beneficial effects as follows, by being remembered, the higher abutment points of interactive efficiency make the BT download system obtain data from the higher abutment points of interactive efficiency as much as possible, thereby guaranteed the speed of downloaded resources, shorten the time of obtaining shared resource, improved utilization of network bandwidth.
Description of drawings
Fig. 1 is existing BT method for down loading schematic flow sheet;
Fig. 2 is a BT method for down loading schematic flow sheet of the present invention.
Embodiment
As shown in Figure 1, in existing BT download system, the life cycle of each Peer comprises seven stages, is respectively to get access to Peer stage, establishment Peer stage, the stage of connecting, transmission data phase, end of transmission stage, disconnection access phase and deletion Peer stage.
The present invention mainly comprise a kind of to each Peer in the BT download system hierarchical processing method and to the life cycle processing method of the Peer that is in different stage.Main contents are as follows:
1, the Peer classification is handled
Among the present invention all Peer are divided into two kinds of senior Peer and regular grade Peer.Peer is carried out the data transmission state of the foundation of classification from Peer.Preferably, adopt two kinds of conditions to show the data transmission state of Peer: whether one, Peer are seed (Seed, the Peer that uploads only is responsible in the download that refers to finish whole shared resource); Its two, the speed of Peer interaction data refers to that mainly whether uploading rate is more than or equal to preset value (High_Speed).As long as satisfying one of above two conditions, any Peer just classifies as senior Peer, just otherwise classify as regular grade Peer.
2, Peer life cycle
After all Peer were carried out classification, the Peer of different stage had different life.The Peer of common grade successively through establishment Peer, connect, transfer of data, end of transmission, disconnection connects and six processes such as deletion Peer after finish its life cycle.And for senior Peer, its life cycle is a process of going round and beginning again, senior Peer also successively through establishment Peer, connect, transfer of data, end of transmission and disconnect and connect five steps, but next system can not carry out deletion action to it, but waiting system carries out creation operation to it next time, thereby enter in the new cycle, up to this senior Peer off-line or shared resource download finish till.
By Peer being carried out classification is handled and the Peer that is in different stage is had the processing of different life, the system that makes can utilize senior Peer as much as possible, obtains data from senior Peer as much as possible.
As shown in Figure 2, idiographic flow of the present invention is as follows:
1. get access to Peer, promptly system comprises IP address and the communication port (port) of Peer by communicating by letter with track (Tracker) or getting access to the information of Peer by distributed hashtable (DHT) mode;
2. create Peer, system is by the corresponding Peer of information creating of the accessed Peer of step 1;
3. whether connect, system sets up TCP with the Peer that step 2 is set up and is connected, and obtains the more information of corresponding Peer, be Seed node etc. as this Peer;
4. transmission data, system have been set up with Peer by step 3 and have been connected, and download the shared resource data to the Peer request.Thereby carry out the exchange and the transmission of data between the two;
5. judge that whether Peer is Seed (system gets access to the more information of Peer by step 3, judges by these message whether this node is Seed);
6. if to get access to Peer be non-Seed in system, then system will write down and the speed of Peer interaction data, and the maximum rate of register system and this Peer interaction data, judge that then whether this speed is more than or equal to the set High_Speed of this method;
7. end of transmission, the peak transfer rate of system log (SYSLOG) is less than High_Speed; Then system keeps being connected up to the transmission of finishing request msg with Peer;
8. transfer of data finishes, system disconnect with this Peer in being connected that step 3 is set up;
9. delete Peer, the Peer that system-kill is created in step 2, and discharge the resource that this Peer occupies;
10. if in step 5, it is Seed that system judges Peer, and then system is added into this Peer in the senior Peer node queue; If in step 6, the message transmission rate of system log (SYSLOG) is more than or equal to High_Speed, and then system is added into this Peer in the senior Peer formation;
11. the Peer and the system transmissions data that are in the senior Peer formation finish;
12. system's disconnection is connected with senior Peer's, but does not discharge its resource; This senior Peer enters the constructive process of Peer next time of system afterwards, and so circulation is finished up to the shared resource download.

Claims (6)

1. point-to-point method for down loading is characterized in that, may further comprise the steps:
A, download system are created neighbors, the beginning transfer of data;
B, download system are divided into senior neighbors or common neighbors according to the data transmission state of neighbors with all neighborss;
C, common neighbors promptly are downloaded system-kill after transfer of data finishes; Senior neighbors is after transfer of data finishes, and download system will carry out creation operation to it once more.
2. point-to-point according to claim 1 method for down loading is characterized in that the data transmission state of described neighbors is meant the data interaction speed of neighbors.
3. point-to-point according to claim 1 method for down loading is characterized in that the data transmission state of described neighbors is meant the data upload speed of neighbors.
4. point-to-point according to claim 1 method for down loading is characterized in that, the data transmission state of described neighbors is meant, whether neighbors is whether the data upload speed of seed and neighbors reaches preset value.
5. as point-to-point method for down loading as described in the claim 4, it is characterized in that satisfying neighbors when the data transmission state of neighbors is seed, or the data upload speed of neighbors reaches preset value, then download system is provided with it and is senior neighbors.
6. as point-to-point method for down loading as described in the claim 5, it is characterized in that step b specifically may further comprise the steps:
B1, download system judge whether neighbors is seed, in this way, then it are provided with it and are senior neighbors; As not, then enter step b2;
B2, download system will write down the maximum rate of this neighbors data upload, judge that whether described maximum rate is more than or equal to preset value; In this way, then it is provided with it and is senior neighbors; As not, then it is provided with it and is common neighbors.
CNA2008103042439A 2008-08-27 2008-08-27 Peer-to-peer downloading method Pending CN101340401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008103042439A CN101340401A (en) 2008-08-27 2008-08-27 Peer-to-peer downloading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008103042439A CN101340401A (en) 2008-08-27 2008-08-27 Peer-to-peer downloading method

Publications (1)

Publication Number Publication Date
CN101340401A true CN101340401A (en) 2009-01-07

Family

ID=40214356

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008103042439A Pending CN101340401A (en) 2008-08-27 2008-08-27 Peer-to-peer downloading method

Country Status (1)

Country Link
CN (1) CN101340401A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581421A (en) * 2014-12-30 2015-04-29 新浪网技术(中国)有限公司 Point-to-point flow media download method and node terminal device
CN104618447A (en) * 2014-12-31 2015-05-13 北京邮电大学 File cooperation downloading method and system
WO2017107461A1 (en) * 2015-12-21 2017-06-29 乐视控股(北京)有限公司 Method, apparatus and system for connecting p2p network nodes

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581421A (en) * 2014-12-30 2015-04-29 新浪网技术(中国)有限公司 Point-to-point flow media download method and node terminal device
CN104581421B (en) * 2014-12-30 2018-05-22 新浪网技术(中国)有限公司 A kind of point-to-point stream media downloading method and nodal terminal device
CN104618447A (en) * 2014-12-31 2015-05-13 北京邮电大学 File cooperation downloading method and system
CN104618447B (en) * 2014-12-31 2018-06-08 北京邮电大学 A kind of file collaboration method for down loading and system
WO2017107461A1 (en) * 2015-12-21 2017-06-29 乐视控股(北京)有限公司 Method, apparatus and system for connecting p2p network nodes

Similar Documents

Publication Publication Date Title
CN102594926B (en) Heterogeneous wireless peer-to-peer (P2P) network file sharing system and file transmission acceleration method
CN101262487B (en) Data transmission processing method and device for point-to-point client
CN102244670B (en) Idle node assistance method for P2P (peer-to-peer) file transmission
CN104734962B (en) A kind of resource search method of non-structural P 2 P network
CN101753404A (en) Network resource downloading method
CN101483604A (en) Method, apparatus and system for resource list sending
WO2012095386A4 (en) Peer node and method for improved peer node selection
CN101340401A (en) Peer-to-peer downloading method
CN102025782A (en) Point-to-point communication method, device and system
CN111800516B (en) Internet of things equipment management method and device based on P2P
CN1937553B (en) Reciprocal network data dispatching method based on flow media data frame
CN103812769A (en) TRILL (Transparent Interconnection of Lots of Links) network construction method, TRILL network construction mode and TRILL network system
CN103533048A (en) Hot seed file acquisition method in BT (BitTorrent) network
US20080288592A1 (en) Method for Transmitting File Based on Multiplex Forwarder
CN107809785B (en) A kind of distributed relay selection method based on mutually beneficial matching game
CN103281395B (en) A kind of data slice based on client terminal quantity divides equally selective system and method
CN107423118A (en) Distributed computational data retransmission method and device
CN101741867A (en) Method for capturing node information in BitTorrent network
CN101605094B (en) Ring model based on point-to-point network and routing algorithm thereof
CN101494664A (en) P2P push type network storage method based on JXTA
CN113328890B (en) Network communication model construction method based on distributed system
CN109618011B (en) Processing system and method for improving landscape lighting cloud control platform file transmission efficiency
CN101325579B (en) Method for optimizing connection download of client terminal
CN100433657C (en) Peer-to-peer network member managing method for large-scale stream media live sysetm
CN105187465A (en) File sharing method, device and system

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: 20090107