CN103312752A - P2P (Peer to Peer) network information distribution method, downloading node, index server and P2P network information distribution system - Google Patents

P2P (Peer to Peer) network information distribution method, downloading node, index server and P2P network information distribution system Download PDF

Info

Publication number
CN103312752A
CN103312752A CN201210065901XA CN201210065901A CN103312752A CN 103312752 A CN103312752 A CN 103312752A CN 201210065901X A CN201210065901X A CN 201210065901XA CN 201210065901 A CN201210065901 A CN 201210065901A CN 103312752 A CN103312752 A CN 103312752A
Authority
CN
China
Prior art keywords
node
download
network information
transit node
transit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210065901XA
Other languages
Chinese (zh)
Other versions
CN103312752B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201210065901.XA priority Critical patent/CN103312752B/en
Publication of CN103312752A publication Critical patent/CN103312752A/en
Application granted granted Critical
Publication of CN103312752B publication Critical patent/CN103312752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a P2P network information distribution method, a downloading node, an index server and a P2P network information distribution system. The method comprises the following steps: downloading network information from a resources node by the downloading node; when the first downloading speed of the downloading node for downloading the network information from the resource node is smaller than a first preset threshold value, triggering a preparation transfer node to download the network information by the downloading node; downloading the transferred network information from the preparation transfer node by the downloading node, wherein the transferred network information is downloaded from the resource node by the preparation transfer node. According to the P2P network information distribution method, the downloading node, the index server and the P2P network information distribution system disclosed by the invention, the network resource is downloaded from the resource node through the preparation transfer node with better performance, and then the network resource is downloaded from the preparation transfer node by the downloading node, so that the speed of downloading the network resource by the downloading node can be increased as much as possible.

Description

Point to point network information dispensing method, download node, index server and system
Technical field
The present invention relates to network transmission technology, relate in particular to a kind of point to point network information dispensing method, download node, index server and system.
Background technology
Point-to-point (Peer to Peer is called for short P2P) is the technology of generally using in the present network transmission, provides new technical support for realizing that Internet resources are shared.The P2P technology is by the network broadband of trying one's best to utilize, and obtains higher transmission performance.The P2P technology is compared with traditional Client, realized distributed store and the shared ability under the peer-to-peer network, each node computer is the recipient of information, is again the sender of information, namely also sends data to other nodes when obtaining data from other nodes.Like this, the P2P information distribution system does not need the deployment information server when distributing network information, greatly reduce the cost of service deployment.
There is an index server in the P2P information distribution system, has wherein stored the node listing that participates in network information distribution according to the network information.When a download node needs download network information, when for example needing to download certain film, at first obtain the seed file of this film from the downloading page of index server, send request according to seed file to index server, index server will be issued this download node in the resource node tabulation of downloading this film equally according to the file identification in the seed file.The request that resource node during the download node is tabulated to resource node again sends request download network information is downloaded film from these resource nodes.
But, at some constantly, the network connection poor-performing between requesting node and other nodes, this can reduce user's speed of download.
Summary of the invention
The invention provides a kind of point to point network information dispensing method, download node, index server and system, be used for avoiding having influenced owing to the network connection poor-performing between download node and the resource node situation of user's speed of download as far as possible.
One aspect of the present invention provides a kind of point to point network information dispensing method, comprising:
Download node download network information from resource node;
First speed of download of downloading the described network information when described download node from described resource node is during less than first predetermined threshold value, and described download node triggers the preparation transit node and downloads the described network information;
Described download node is downloaded the described network information of transfer from described preparation transit node, the network information of described transfer is that described preparation transit node is downloaded from described resource node.
Aforesaid point to point network information dispensing method, preferably, described first speed of download of downloading the described network information when described download node from described resource node is during less than first predetermined threshold value, and described download node triggers the preparation transit node and downloads the described network information and comprise:
First speed of download of downloading the described network information when described download node from described resource node is during less than predetermined threshold value, described download node sends the solicited message that request prepares transit node to index server, so that described index server is selected the preparation transit node from default transit node tabulation;
Described download node receives the address of the preparation transit node that described index server returns;
Described download node sends to described preparation transit node and triggers message, downloads the described network information to trigger described preparation transit node from described resource node.
Aforesaid point to point network information dispensing method, preferably, described index server selects the preparation transit node to comprise from described transit node tabulation:
Described index server is searched each the idle transit node in the described transit node tabulation, from described each idle transit node, select with the nearest idle transit node of described download nodal distance perhaps from described each idle node, to select a minimum idle transit node of load as the preparation transit node as the preparation transit node.
Aforesaid point to point network information dispensing method, preferably, described index server selects the preparation transit node also to comprise from described transit node tabulation:
Every first Preset Time, described index server detects second speed of download that described preparation transit node is downloaded the described network information, and detects described download node is downloaded the described network information of transfer from described preparation transit node the 3rd speed of download;
When described index server monitors described second speed of download when being less than or equal to described first speed of download, when perhaps described the 3rd speed of download was less than or equal to first speed of download, described index server was reselected the preparation transit node.
Aforesaid point to point network information dispensing method preferably, also comprises:
Every second Preset Time, whether index server detects the load of each non-transit node less than second predetermined threshold value, if then the non-transit node that will load less than described second predetermined threshold value of described index server adds described default transit node tabulation.
Aforesaid point to point network information dispensing method preferably, before new transit node being added described default transit node tabulation, also comprises:
Index server detects the ratio that transit node described in the network accounts for all nodes, and when the ratio of described transit node surpassed the preset ratio threshold value, cancellation increased the operation of transit node.
Aforesaid point to point network information dispensing method preferably, also comprises:
Every the 3rd Preset Time, the load that index server detects each transit node has not greater than the 3rd predetermined threshold value, if having, then described index server will be loaded and be removed from described transit node tabulation greater than the transit node of described the 3rd predetermined threshold value.
Aforesaid point to point network information dispensing method preferably, before described download node triggering preparation transit node is downloaded the described network information, also comprises:
Described download node judges whether described first predetermined threshold value is less than or equal to current speed of download restriction, when judged result when being, carry out the operation that described download node triggers the preparation transit node, wherein, described current speed of download is restricted to one less in the resource node speed of download restriction that the current download node speed of download of described download node limits and described resource node is current.
Aforesaid point to point network information dispensing method preferably, also comprises before the download network information from resource node at described download node:
Described download node receives the resource node speed of download restriction that described resource node sends; And/or
The resource node tabulation that described download node reception hint server sends, described resource node tabulation comprises the resource node speed of download restriction of described each resource node correspondence.
Another aspect of the present invention provides a kind of download node, comprising:
First detection module, from resource node, download first speed of download of the described network information for detection of downloading node, first speed of download of downloading the described network information when described download node from described resource node is during less than first predetermined threshold value, start trigger module, and trigger download module and from the preparation transit node, download the described network information;
Described trigger module is used for triggering described preparation transit node and downloads the described network information;
Download module is used for from the described network information of described preparation transit node download transfer, and the network information of described transfer is that described preparation transit node is downloaded from described resource node.
Aforesaid download node, preferably, described trigger module comprises:
The request submodule is used for sending the solicited message that request prepares transit node to index server, so that described index server is selected the preparation transit node from default transit node tabulation;
Receive submodule, be used for receiving the address of the preparation transit node that described index server returns;
Send and trigger the message submodule, be used for sending triggering message to described preparation transit node, from described resource node, download the described network information to trigger described preparation transit node, and trigger described download module and from described preparation transit node, download the described network information.
Aforesaid download node preferably, also comprises:
Judge module, be used for when described download node from first speed of download of the described network information of described resource node download during less than first predetermined threshold value, judge whether described first predetermined threshold value is less than or equal to current speed of download restriction, when judged result when being, trigger described trigger module, wherein, described current speed of download is restricted to one less in the speed of download restriction that the current speed of download of described download node limits and described resource node is current, and being used for receiving the resource node that the resource node speed of download limits and/or the reception hint server the sends tabulation that described resource node sends, described resource node tabulation comprises the resource node speed of download restriction of described each resource node correspondence.
One side more of the present invention provides a kind of index server, comprising:
Receive request module, be used for receiving the solicited message of the request preparation transit node of downloading node;
Search module, be used for searching according to described request each idle transit node of described transit node tabulation, from described each idle transit node, select with the nearest idle transit node of described download nodal distance perhaps from described each idle node, to select a minimum idle transit node of load as the preparation transit node as the preparation transit node;
Return module, be used for returning to described download node the information of described preparation transit node.
Aforesaid index server preferably, also comprises:
Second detection module, be used for every first Preset Time, detect described preparation transit node and from resource node, download second speed of download of the described network information, and detect described download node is downloaded the described network information of transfer from described preparation transit node the 3rd speed of download;
The gravity treatment module is used for monitoring described second speed of download when being less than or equal to described first speed of download when described second detection module, when perhaps described the 3rd speed of download is less than or equal to first speed of download, reselects the preparation transit node;
Add module, be used for every second Preset Time, whether detect the load of each non-transit node less than second predetermined threshold value, if the non-transit node less than described second predetermined threshold value of then will loading adds described default transit node and tabulates;
The 3rd detection module accounts for the ratio of all nodes for detection of transit node described in the network, and when the ratio of described transit node surpassed the preset ratio threshold value, cancellation increased the operation of transit node;
The 4th detection module is used for every the 3rd Preset Time, and the load that detects each transit node has not greater than the 3rd predetermined threshold value, if having, then will load greater than transit node removal from described transit node is tabulated of described the 3rd predetermined threshold value;
Obtain the speed of download limiting module, be used for receiving the resource node speed of download restriction that described resource node sends, and be stored in the described resource node tabulation, and send described resource node tabulation to described download node.
Another aspect of the present invention provides a kind of point to point network information distribution system, comprises resource node, preferably, also comprises as above each described download node, and as above each described index server.
According to point to point network information dispensing method of the present invention, download node, index server and system, prepare transit node down loading network resource from resource node preferably by performance, by downloading node down loading network resource from the preparation transit node, can improve the speed of downloading the node down loading network resource more as far as possible.
Description of drawings
Fig. 1 is the schematic flow sheet of point to point network information dispensing method according to an embodiment of the invention;
Fig. 2 A is for downloading the structural representation of node according to another embodiment of the present invention;
Fig. 2 B is for downloading the structural representation of node according to another embodiment of the present invention
Fig. 2 C is the structural representation according to the download node of further embodiment of this invention;
Fig. 3 is the structural representation of index server according to yet another embodiment of the invention;
Fig. 4 is the structural representation according to the index server of further embodiment of this invention;
Fig. 5 is the structural representation of index server according to another embodiment of the present invention.
Embodiment
Embodiment one
Present embodiment provides a kind of point to point network information dispensing method.The network architecture of this method practicality is point to point network information distribution system of the prior art.Comprise a lot of nodes in this point to point network information distribution system, wherein a part of node is transit node, and transit node is the partial properties that chooses from all nodes node preferably, can be used for the transfer Internet resources.Each node here can be understood as computer.
As shown in Figure 1, be the schematic flow sheet of the point to point network information dispensing method of present embodiment.
Step 101 is downloaded node download network information from resource node.
Download node in this step is just at the node of download network information, and resource node is to provide the node of the required network information for downloading node, and the number of resource node can be for one or more.
Step 102 when first speed of download of downloading node download network information from resource node during less than first predetermined threshold value, is downloaded node and is triggered preparation transit node download network information.
First predetermined threshold value in this step 102 can set up on their own according to actual needs, thereby for example setting the first predetermined threshold value difference that makes each download node by downloading node, can be that in this network all are downloaded first predetermined threshold value of nodes settings by the webserver also.Transit node is download network information from resource node, downloads node download network information from transit node more then.The transit node here is performance node preferably in the network.Become transit node, can be by sending request to index server, when request by the time can become transit node.Can also when each node is opened application program and is connected to index server, by index server the performance of user node be passed judgment on, meet the requirements of node and be set to transit node.
The requirement here can comprise: (1) node has public network IP (Internet Protocol) address, and the access network bandwidth reaches the pre-set bandwidths threshold value, and the pre-set bandwidths threshold value here can set up on their own according to actual needs, for example is 2,000,000; (2) idle storage space of node reaches default storage threshold.The default storage threshold here can set up on their own equally according to actual needs, for example is 2~4G; (3) CPU (Central Processing Unit, central processing unit) and the vacant ability of internal memory reach default vacant threshold value, and be vacant 70% as CPU, internal memory residue 1G.
One transit node list storage transit node can be set, search for follow-up.Can record IP address, cpu performance, the information such as memory space of free time of each transit node in the transit node tabulation.
When downloading node triggering preparation transit node, preparation transit node download network information from resource node.The mode that triggers the preparation transit node can be to download node to send request and select suitable preparation transit node to download by index server to index server earlier.In the present embodiment mode that triggers is not done restriction.
Step 103 is downloaded node is downloaded transfer from the preparation transit node the network information, and the network information preparation transit node of transfer is downloaded from resource node.
In this step 103, download node download network information from transit node.Preferably, download no longer download network information from resource node of node, but download network information from transit node only.This be because, in practical operation, resource node probably is provided with the maximal rate of permission download or the maximum number of connections of permission, if download still down loading network resource from resource node of node this moment, the speed of download that then probably causes preparing transit node be restricted or prepare transit node can not be from resource node down loading network resource.
Point to point network information dispensing method according to present embodiment, prepare transit node down loading network resource from resource node preferably by performance, by downloading node down loading network resource from the preparation transit node, can improve the speed of downloading the node down loading network resource more as far as possible.Generally speaking, second speed of download of preparation transit node down loading network resource from resource node should be greater than first speed of download, and downloading the speed of download of node from the preparation transit node also should be greater than first speed of download, like this, just be equivalent to improve indirectly the speed of downloading the node down loading network resource.
Embodiment two
Present embodiment is done further restriction to the point to point network information dispensing method of embodiment one.
Particularly, step 102 comprises:
Step 1021, when first speed of download of downloading node download network information from resource node during less than predetermined threshold value, download node and send the solicited message that request prepares transit node to index server, so that index server is selected the preparation transit node from default transit node tabulation.
Whether download first speed of download that node detects self with predetermined period less than predetermined threshold value, when finding first speed of download less than predetermined threshold value, send solicited message to index server.Can comprise in the solicited message and download address of node, network information content and/or resource node address.Index server can be selected a preparation transit node according to solicited message from the transit node tabulation.
Particularly, index server selects the preparation transit node to comprise from the transit node tabulation:
Index server is searched each the idle transit node in the transit node tabulation, from each idle transit node, select an idle transit node nearest with downloading nodal distance as the preparation transit node, perhaps from each idle node, select a minimum idle transit node of load as the preparation transit node.Idle transit node refers to the transit node that is not triggered, and nearest idle transit node can be the transit node nearest with downloading meshed network, for example with the idle transit node of downloading node time delay minimum.
Step 1022, the address of the preparation transit node that download node reception hint server returns.
Index server is selected after the preparation transit node, the IP address of this preparation transit node can be sent to the download node.
Step 1023 is downloaded node and is sent triggering message to the preparation transit node, to trigger preparation transit node download network information from resource node.
The download node sends to the preparation transit node and triggers message, can comprise the download IP addresses of nodes in the triggering message, download the required network information of node and/or the IP address of resource node.The preparation transit node triggers message download network information from resource node according to this.Alternatively, the network information that the preparation transit node is downloaded is stored in a period of time in the buffer memory, downloads node for other and downloads, and improves the propagation velocity of this network information in whole network.
According to the point to point network information dispensing method of present embodiment, realize selecting to prepare the operation of transit node by index server, can reduce the burden of downloading node.
Embodiment three
Present embodiment is done further improvement to the distribution method of the point to point network information of embodiment two.
Present embodiment only selects the step of preparation transit node to do restriction from the transit node tabulation to index server, and all the other steps are all consistent with embodiment two, do not repeat them here.
Particularly, index server selects the preparation transit node also to comprise from the transit node tabulation: every first Preset Time, index server detects second speed of download of preparation transit node download network information, and detects and download node is downloaded the network information of transfer from the preparation transit node the 3rd speed of download;
When index server monitors second speed of download when being less than or equal to first speed of download, when perhaps the 3rd speed of download was less than or equal to first speed of download, index server was reselected the preparation transit node.
In actual applications, the preparation transit node is very possible owing to the artificial origin damages, and at this moment, the preparation transit node does not just have any effect, and makes that on the contrary the download node can not down loading network resource; Or the selected preparation transit node of index server and improper, namely prepare second speed of download of transit node download network information from resource node and be not more than first speed of download, like this, also just there is no need to trigger the preparation transit node and carry out the download of Internet resources.
Point to point network information dispensing method according to present embodiment, by every first Preset Time, carried out the detection of second speed of download and the 3rd speed of download by index server, can in time adjust the preparation transit node, to guarantee that as far as possible downloading node can download to information resources with fast speeds.
Embodiment four
Present embodiment is done further improvement to above-described embodiment.
Particularly, the point to point network information dispensing method of above-described embodiment also comprises:
Every second Preset Time, whether index server detects the load of each non-transit node less than second predetermined threshold value, if then index server will be loaded less than the default transit node tabulation of the non-transit node adding of second predetermined threshold value.
In the practical application, because the real-time load of each node is dissimilar, some node is perhaps also ineligible when being connected to index server or when request becomes transit node, but when at some constantly, its load is very little, when having reached the condition that becomes transit node, this moment, index server just can be set to transit node by these less nodes of loading, to improve the speed of download of the network information.
Alternatively, before new transit node being added default transit node tabulation, also comprise:
Transit node accounts for the ratio of all nodes in the index server detection network, and when the ratio of transit node surpassed the preset ratio threshold value, cancellation increased the operation of transit node.This preset ratio threshold value can be 5%.
This be because, when the quantity of transit node of operation is too much, can increase the burden of whole network, so just need the quantity of transit node be controlled, to guarantee in the raising network information speed of download increase network burden with exceeding.
Certainly, similarly, every the 3rd Preset Time, the load that index server detects each transit node has not greater than the 3rd predetermined threshold value, if having, then index server will be loaded and be removed from the transit node tabulation greater than the transit node of the 3rd predetermined threshold value.Because when the load of transit node self is excessive, it just no longer is suitable as transit node, index server can in time be removed and be not suitable as transit node by detect the load of each transit node every the 3rd Preset Time, to guarantee the speed of download of Internet resources.
According to the point to point network information dispensing method of present embodiment, by dynamically adjusting transit node, can either improve the speed of download of the network information as far as possible, can increase network burden again with exceeding.
Embodiment five
Present embodiment is done further improvement to the point to point network information dispensing method of above-described embodiment.
Particularly, before downloading node triggering preparation transit node download network information, also comprise:
Download node and judge whether first predetermined threshold value is less than or equal to current speed of download restriction, when judged result when being, carry out and download the operation that node triggers the preparation transit node, wherein, current speed of download is restricted to and downloads one less in the resource node speed of download restriction that the current download node speed of download of node limits and resource node is current.
When first speed of download is less than or equal to current speed of download restriction less than first predetermined threshold value and first predetermined threshold value, then the value of explanation first speed of download this moment is not owing to current speed of download restriction causes it less, probably be owing to bad first speed of download of downloading between node and the resource node that causes of network connection performance is less, trigger the preparation transit node this moment from the operation of resource node down loading network resource, then the very possible speed of downloading node download network information that improves greatly.And when first speed of download during less than first predetermined threshold value, when but first predetermined threshold value limits greater than current speed of download, then probably be owing to this current speed of download restriction causes first speed of download too small, for example first speed of download equals current speed of download restriction, just can not trigger the preparation transit node this moment from downloading the operation of node down loading network resource, to avoid waste of network resources.
The current speed of download restriction that the download node obtains resource node has a variety of methods, and is specific as follows:
Download node and receive the resource node speed of download restriction that resource node sends; And/or
Download the resource node tabulation that node reception hint server sends, the resource node tabulation comprises the resource node speed of download restriction of each resource node correspondence.
When the download node is connected to resource node, resource node just sends the restriction of resource node speed of download to downloading node, download node like this and namely can learn the resource node speed of download restriction of resource node in real time, in follow-up operation, to judge whether to trigger transit node; Or resource node reports the restriction of resource node speed of download to index server in advance, index server is stored it, and when sending the resource node tabulation to the download node, also send the resource node speed of download restriction of each resource node correspondence, download node like this and just can in time know the restriction of resource node speed of download, in order in follow-up operation, judge whether to trigger transit node.
Point to point network information dispensing method according to present embodiment, by judging that whether first predetermined threshold value is less than current speed of download restriction, can learn whether first speed of download is owing to download the former of node or resource node thereby cause it too small, if words, then do not carry out the operation that triggers the preparation transit node, with the Internet resources that avoid waste.Otherwise, even transit node, can not improve the speed of download of downloading node from resource node download network information yet.
Embodiment six
Present embodiment six provides a kind of download node, is used for carrying out the point to point network information dispensing method of embodiment one to embodiment four arbitrary embodiment.
Shown in Fig. 2 A, be the structural representation according to the download node 200 of present embodiment.Download node 200 and can be a computer, comprise first detection module 201, trigger module 202 and download module 203.
Wherein, first detection module 201 is connected with download module 203 with trigger module 202 respectively, first speed of download for detection of download module 203 download network information from resource node 210, namely download first speed of download of node 200 download network information from resource node 210 itself, when first speed of download of downloading node 200 download network information from resource node 210 during less than first predetermined threshold value, start trigger module 202, simultaneously, trigger download module 203 and transfer down loading network resource from preparation transit node 220 to; Trigger module 202 is connected with download module 203 with first detection module 201 respectively, is used for triggering preparation transit node 220 download network information; Download module 203 is connected with trigger module 202 with first detection module 201 respectively, is used for downloading the network information of transfer from preparation transit node 220, and the network information of transfer is that preparation transit node 220 is downloaded from resource node 210.
Alternatively, shown in Fig. 2 B, above-mentioned trigger module 202 specifically comprises request submodule 204, receives submodule 205 and send and trigger message submodule 206.
Wherein, request submodule 204 is connected with first detection module 201, receive the triggering of first detection module 201, be used for sending to index server 300 solicited message of request preparation transit node 220, so that index server 300 is selected preparation transit node 220 from default transit node tabulation; Receive submodule 205 and be connected with index server 300, the address of the preparation transit node 220 that returns for reception hint server 300; Sending triggering message submodule 206 is connected with reception submodule 205 with download module 203 respectively, be used for the address according to preparation transit node 220, send triggering message to preparation transit node 220, with triggering preparation transit node 220 download network information from resource node 210, and trigger download module 203 download network information from preparation transit node 220.
Download node 200 according to present embodiment, prepare transit node 220 down loading network resource from resource node 210 preferably by performance, by downloading node 200 down loading network resource from preparation transit node 220, can improve the speed of downloading node 200 down loading network resources again.Generally speaking, second speed of download of preparation transit node 220 down loading network resource from resource node 210 should be greater than first speed of download, and downloading the speed of download of node 200 from preparation transit node 220 also should be greater than first speed of download, like this, just be equivalent to improve indirectly the speed of downloading node 200 down loading network resources.
Embodiment seven
Present embodiment is further improved the download node of embodiment six, is used for carrying out the point to point network information dispensing method of embodiment five.
Shown in Fig. 2 C, be the structural representation according to the download node of present embodiment.The download node 200 of present embodiment also comprises judge module 240, this judge module 240 is connected with trigger module 202 with first detection module 201 respectively, particularly, it is connected with request submodule 204 in the trigger module 202, be used for judging whether first predetermined threshold value is less than or equal to current speed of download restriction, when judged result when being, trigger trigger module 202, wherein, current speed of download is restricted to and downloads one less in the current speed of download restriction of the current speeds of download restriction of node 200 and resource node 210.
Alternatively, the judge module 240 of present embodiment can also be connected with resource node 210 and/or index server 300 respectively, be used for receiving the resource node tabulation that the resource node speed of download limits and/or reception hint server 300 sends that resource node 210 sends, the resource node tabulation comprises the resource node speed of download restriction of each resource node correspondence.
Download node 200 according to present embodiment, by judging that whether first predetermined threshold value is less than current speed of download restriction, can learn whether first speed of download is owing to download the former of node 200 or resource node 210 thereby cause it too small, if words, then do not carry out the operation that triggers preparation transit node 220, with the Internet resources that avoid waste.
Embodiment eight
Present embodiment eight provides a kind of index server, is used for carrying out the point to point network information dispensing method of above-described embodiment one or embodiment two.
As shown in Figure 3, this index server 300 comprises reception request module 301, searches module 302 and return module 303.
Wherein, receive request module 301 respectively with search module 302, download node 200 and is connected, be used for receiving the solicited message that the request of downloading node 200 prepares transit node; Search module 302 respectively with receive request module 301 and return module 303 and be connected, be used for searching according to request each idle transit node of transit node tabulation, from each idle transit node, select an idle transit node nearest with downloading node 200 as the preparation transit node, perhaps from each idle node, select a minimum idle transit node of load as preparation transit node 220; Return module 303 and search module 302, download node 200 and is connected, be used for returning the information of preparing transit node 220 to downloading node 200.
Point to point network information dispensing method according to present embodiment, realize selecting to prepare the operation of transit node by index server 300, and return the address of preparation transit node to downloading node 200, trigger preparation transit node down loading network resource so that download node 200, download node 200 down loading network resource from the preparation transit node then, improve speed of download.
Embodiment nine
Present embodiment is done further improvement to the index server of embodiment eight, is used for carrying out the point to point network information dispensing method of embodiment three.
As shown in Figure 4, the index server 300 of present embodiment also comprises second detection module 401 and gravity treatment module 402.
Wherein, second detection module 401 is used for every first Preset Time, detect second speed of download of preparation transit node 220 download network information from resource node 210, and detect and download node 200 is downloaded the network information of transfer from preparation transit node 220 the 3rd speed of download; Gravity treatment module 402 is connected with second detection module 401, be used for monitoring second speed of download when being less than or equal to first speed of download when second detection module 401, when perhaps the 3rd speed of download is less than or equal to first speed of download, reselect the preparation transit node.
Index server 300 according to present embodiment, by every first Preset Time, carry out the detection of second speed of download and the 3rd speed of download by index server 300, can in time adjust the preparation transit node, to guarantee that downloading node 200 can download to information resources with fast speeds.
Embodiment ten
Present embodiment is done further improvement to the index server of above-described embodiment, is used for carrying out the point to point network information dispensing method of embodiment four or embodiment five.
As shown in Figure 5, be the structural representation according to the index server 300 of present embodiment.This index server 300 also comprises adding module 501.This adds module 501 and is used for every second Preset Time, whether detects the load of each non-transit node less than second predetermined threshold value, if then will load less than the default transit node tabulation of the non-transit node adding of second predetermined threshold value.
Alternatively, this index server 300 also comprises and adds the 3rd detection module 502 that module 501 is connected, the 3rd detection module 502 accounts for the ratio of all nodes for detection of transit node in the network, and when the ratio of transit node surpassed the preset ratio threshold value, cancellation increased the operation of transit node.Wherein, the preset ratio threshold value can be 5%.
Alternatively, this index server 300 also comprises the 4th detection module 503.The 4th detection module 503 is used for every the 3rd Preset Time, and the load that detects each transit node has not greater than the 3rd predetermined threshold value, if having, then will load greater than transit node removal from transit node is tabulated of the 3rd predetermined threshold value.
Alternatively, this index server 300 also comprises and obtains speed of download limiting module 504, this obtains speed of download limiting module 504 and is connected with download node 200 with resource node 210 respectively, be used for receiving the resource node speed of download restriction that resource node 210 sends, and be stored in the resource node tabulation, and send the resource node tabulation to downloading node 200.
According to the index server 300 of present embodiment, by dynamically adjusting transit node, can either improve the speed of download of the network information, can increase network burden again with exceeding.
The present invention also provides a kind of point to point network information distribution system, comprises resource node, also comprises above-mentioned each download node, and the index server of above-mentioned arbitrary embodiment, is used for carrying out the point to point network information dispensing method of above-mentioned arbitrary embodiment.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.

Claims (15)

1. a point to point network information dispensing method is characterized in that, comprising:
Download node download network information from resource node;
First speed of download of downloading the described network information when described download node from described resource node is during less than first predetermined threshold value, and described download node triggers the preparation transit node and downloads the described network information;
Described download node is downloaded the described network information of transfer from described preparation transit node, the network information of described transfer is that described preparation transit node is downloaded from described resource node.
2. point to point network information dispensing method according to claim 1, it is characterized in that, described first speed of download of downloading the described network information when described download node from described resource node is during less than first predetermined threshold value, and described download node triggers the preparation transit node and downloads the described network information and comprise:
First speed of download of downloading the described network information when described download node from described resource node is during less than predetermined threshold value, described download node sends the solicited message that request prepares transit node to index server, so that described index server is selected the preparation transit node from default transit node tabulation;
Described download node receives the address of the preparation transit node that described index server returns;
Described download node sends to described preparation transit node and triggers message, downloads the described network information to trigger described preparation transit node from described resource node.
3. point to point network information dispensing method according to claim 2 is characterized in that, described index server selects the preparation transit node to comprise from described transit node tabulation:
Described index server is searched each the idle transit node in the described transit node tabulation, from described each idle transit node, select with the nearest idle transit node of described download nodal distance perhaps from described each idle node, to select a minimum idle transit node of load as the preparation transit node as the preparation transit node.
4. the distribution method of point to point network information according to claim 3 is characterized in that, described index server selects the preparation transit node also to comprise from described transit node tabulation:
Every first Preset Time, described index server detects second speed of download that described preparation transit node is downloaded the described network information, and detects described download node is downloaded the described network information of transfer from described preparation transit node the 3rd speed of download;
When described index server monitors described second speed of download when being less than or equal to described first speed of download, when perhaps described the 3rd speed of download was less than or equal to first speed of download, described index server was reselected the preparation transit node.
5. point to point network information dispensing method according to claim 2 is characterized in that, also comprises:
Every second Preset Time, whether index server detects the load of each non-transit node less than second predetermined threshold value, if then the non-transit node that will load less than described second predetermined threshold value of described index server adds described default transit node tabulation.
6. point to point network information dispensing method according to claim 5 is characterized in that, before new transit node being added described default transit node tabulation, also comprises:
Index server detects the ratio that transit node described in the network accounts for all nodes, and when the ratio of described transit node surpassed the preset ratio threshold value, cancellation increased the operation of transit node.
7. point to point network information dispensing method according to claim 2 is characterized in that, also comprises:
Every the 3rd Preset Time, the load that index server detects each transit node has not greater than the 3rd predetermined threshold value, if having, then described index server will be loaded and be removed from described transit node tabulation greater than the transit node of described the 3rd predetermined threshold value.
8. point to point network information dispensing method according to claim 1 is characterized in that, before described download node triggering preparation transit node is downloaded the described network information, also comprises:
Described download node judges whether described first predetermined threshold value is less than or equal to current speed of download restriction, when judged result when being, carry out the operation that described download node triggers the preparation transit node, wherein, described current speed of download is restricted to one less in the resource node speed of download restriction that the current download node speed of download of described download node limits and described resource node is current.
9. point to point network information dispensing method according to claim 8 is characterized in that, also comprises before the download network information from resource node at described download node:
Described download node receives the resource node speed of download restriction that described resource node sends; And/or
The resource node tabulation that described download node reception hint server sends, described resource node tabulation comprises the resource node speed of download restriction of described each resource node correspondence.
10. download node for one kind, it is characterized in that, comprising:
First detection module, from resource node, download first speed of download of the described network information for detection of downloading node, first speed of download of downloading the described network information when described download node from described resource node is during less than first predetermined threshold value, start trigger module, and trigger download module and from the preparation transit node, download the described network information;
Described trigger module is used for triggering described preparation transit node and downloads the described network information;
Download module is used for from the described network information of described preparation transit node download transfer, and the network information of described transfer is that described preparation transit node is downloaded from described resource node.
11. download node according to claim 10 is characterized in that, described trigger module comprises:
The request submodule is used for sending the solicited message that request prepares transit node to index server, so that described index server is selected the preparation transit node from default transit node tabulation;
Receive submodule, be used for receiving the address of the preparation transit node that described index server returns;
Send and trigger the message submodule, be used for sending triggering message to described preparation transit node, from described resource node, download the described network information to trigger described preparation transit node, and trigger described download module and from described preparation transit node, download the described network information.
12. download node according to claim 10 is characterized in that, also comprises:
Judge module, be used for when described download node from first speed of download of the described network information of described resource node download during less than first predetermined threshold value, judge whether described first predetermined threshold value is less than or equal to current speed of download restriction, when judged result when being, trigger described trigger module, wherein, described current speed of download is restricted to one less in the speed of download restriction that the current speed of download of described download node limits and described resource node is current, and being used for receiving the resource node that the resource node speed of download limits and/or the reception hint server the sends tabulation that described resource node sends, described resource node tabulation comprises the resource node speed of download restriction of described each resource node correspondence.
13. an index server is characterized in that, comprising:
Receive request module, be used for receiving the solicited message of the request preparation transit node of downloading node;
Search module, be used for searching according to described request each idle transit node of described transit node tabulation, from described each idle transit node, select with the nearest idle transit node of described download nodal distance perhaps from described each idle node, to select a minimum idle transit node of load as the preparation transit node as the preparation transit node;
Return module, be used for returning to described download node the information of described preparation transit node.
14. index server according to claim 13 is characterized in that, also comprises:
Second detection module, be used for every first Preset Time, detect described preparation transit node and from resource node, download second speed of download of the described network information, and detect described download node is downloaded the described network information of transfer from described preparation transit node the 3rd speed of download;
The gravity treatment module is used for monitoring described second speed of download when being less than or equal to described first speed of download when described second detection module, when perhaps described the 3rd speed of download is less than or equal to first speed of download, reselects the preparation transit node;
Add module, be used for every second Preset Time, whether detect the load of each non-transit node less than second predetermined threshold value, if the non-transit node less than described second predetermined threshold value of then will loading adds described default transit node and tabulates;
The 3rd detection module accounts for the ratio of all nodes for detection of transit node described in the network, and when the ratio of described transit node surpassed the preset ratio threshold value, cancellation increased the operation of transit node;
The 4th detection module is used for every the 3rd Preset Time, and the load that detects each transit node has not greater than the 3rd predetermined threshold value, if having, then will load greater than transit node removal from described transit node is tabulated of described the 3rd predetermined threshold value;
Obtain the speed of download limiting module, be used for receiving the resource node speed of download restriction that described resource node sends, and be stored in the described resource node tabulation, and send described resource node tabulation to described download node.
15. a point to point network information distribution system comprises resource node, it is characterized in that, also comprises each described download node in the claim 10 to 12, and claim 13 or 14 described index servers.
CN201210065901.XA 2012-03-13 2012-03-13 Point to point network information dispensing method, download node, index server and system Active CN103312752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210065901.XA CN103312752B (en) 2012-03-13 2012-03-13 Point to point network information dispensing method, download node, index server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210065901.XA CN103312752B (en) 2012-03-13 2012-03-13 Point to point network information dispensing method, download node, index server and system

Publications (2)

Publication Number Publication Date
CN103312752A true CN103312752A (en) 2013-09-18
CN103312752B CN103312752B (en) 2016-07-06

Family

ID=49137535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210065901.XA Active CN103312752B (en) 2012-03-13 2012-03-13 Point to point network information dispensing method, download node, index server and system

Country Status (1)

Country Link
CN (1) CN103312752B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595800A (en) * 2013-11-18 2014-02-19 中国联合网络通信集团有限公司 Real-time data distributing and processing method and device
CN104717253A (en) * 2013-12-13 2015-06-17 乐视网信息技术(北京)股份有限公司 P2P node connecting method and device
CN105007339A (en) * 2015-08-25 2015-10-28 广东欧珀移动通信有限公司 Resource download method, device thereof and intelligent terminal
CN105763618A (en) * 2016-03-31 2016-07-13 网宿科技股份有限公司 Method and device for data transmission
CN106131165A (en) * 2016-07-01 2016-11-16 北京百度网讯科技有限公司 Anti-stealing link method and device for content distributing network
CN109447648A (en) * 2018-12-07 2019-03-08 深圳市智税链科技有限公司 The method of recorded data zone block, accounting nodes and medium in block chain network
CN109523385A (en) * 2018-12-07 2019-03-26 深圳市智税链科技有限公司 Method, accounting nodes and the medium of Transaction Information are inquired in block chain network
CN109684375A (en) * 2018-12-07 2019-04-26 深圳市智税链科技有限公司 Method, accounting nodes and the medium of Transaction Information are inquired in block chain network
CN110247815A (en) * 2019-05-09 2019-09-17 深圳市迅雷网络技术有限公司 A kind of data transmission method, device, system and computer readable storage medium
CN110830565A (en) * 2019-10-31 2020-02-21 北京奇艺世纪科技有限公司 Resource downloading method, device, system, electronic equipment and storage medium
CN112738255A (en) * 2020-12-30 2021-04-30 江西格灵如科科技有限公司 Downloading and distributing processing method, terminal and system for VR resources

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282302A (en) * 2008-05-29 2008-10-08 腾讯科技(深圳)有限公司 Data transfer method, system, client and server
CN101431464A (en) * 2007-11-06 2009-05-13 阿里巴巴集团控股有限公司 Method and apparatus for optimizing data transmission route between clients
CN101790204A (en) * 2010-02-01 2010-07-28 北京邮电大学 Relay selection method giving consideration to channel conditions and traffic states in cooperative communication system
US8031605B2 (en) * 2008-03-31 2011-10-04 Intel Corporation System and method for node-clustering and multi-hop routing in wideband wireless ad-hoc networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431464A (en) * 2007-11-06 2009-05-13 阿里巴巴集团控股有限公司 Method and apparatus for optimizing data transmission route between clients
US8031605B2 (en) * 2008-03-31 2011-10-04 Intel Corporation System and method for node-clustering and multi-hop routing in wideband wireless ad-hoc networks
CN101282302A (en) * 2008-05-29 2008-10-08 腾讯科技(深圳)有限公司 Data transfer method, system, client and server
CN101790204A (en) * 2010-02-01 2010-07-28 北京邮电大学 Relay selection method giving consideration to channel conditions and traffic states in cooperative communication system

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595800B (en) * 2013-11-18 2017-04-05 中国联合网络通信集团有限公司 A kind of real-time distribution processor device and method of data
CN103595800A (en) * 2013-11-18 2014-02-19 中国联合网络通信集团有限公司 Real-time data distributing and processing method and device
CN104717253A (en) * 2013-12-13 2015-06-17 乐视网信息技术(北京)股份有限公司 P2P node connecting method and device
CN105007339A (en) * 2015-08-25 2015-10-28 广东欧珀移动通信有限公司 Resource download method, device thereof and intelligent terminal
CN105763618B (en) * 2016-03-31 2019-08-13 网宿科技股份有限公司 The method and apparatus of data transmission
CN105763618A (en) * 2016-03-31 2016-07-13 网宿科技股份有限公司 Method and device for data transmission
CN106131165A (en) * 2016-07-01 2016-11-16 北京百度网讯科技有限公司 Anti-stealing link method and device for content distributing network
CN106131165B (en) * 2016-07-01 2019-11-12 北京百度网讯科技有限公司 Anti-stealing link method and device for content distributing network
CN110930149A (en) * 2018-12-07 2020-03-27 深圳市智税链科技有限公司 Method, proxy node, and medium for determining accounting node in blockchain network
CN109447648A (en) * 2018-12-07 2019-03-08 深圳市智税链科技有限公司 The method of recorded data zone block, accounting nodes and medium in block chain network
US11973858B2 (en) 2018-12-07 2024-04-30 Tencent Technology (Shenzhen) Company Limited Method for recording data block in blockchain network, accounting node, and medium
CN109523385A (en) * 2018-12-07 2019-03-26 深圳市智税链科技有限公司 Method, accounting nodes and the medium of Transaction Information are inquired in block chain network
CN110471953A (en) * 2018-12-07 2019-11-19 深圳市智税链科技有限公司 Method, agent node and the medium of accounting nodes are determined in block chain network
CN110471952A (en) * 2018-12-07 2019-11-19 深圳市智税链科技有限公司 Method, agent node and the medium of accounting nodes are determined in block chain network
CN111027971B (en) * 2018-12-07 2023-08-22 深圳市智税链科技有限公司 Method, proxy node and medium for determining accounting node in blockchain network
CN109684375A (en) * 2018-12-07 2019-04-26 深圳市智税链科技有限公司 Method, accounting nodes and the medium of Transaction Information are inquired in block chain network
CN111027971A (en) * 2018-12-07 2020-04-17 深圳市智税链科技有限公司 Method, proxy node, and medium for determining accounting node in blockchain network
CN109447648B (en) * 2018-12-07 2023-07-04 深圳市智税链科技有限公司 Method, accounting node and medium for recording data blocks in a blockchain network
CN109684375B (en) * 2018-12-07 2022-12-27 深圳市智税链科技有限公司 Method, accounting node and medium for querying transaction information in blockchain network
CN110471952B (en) * 2018-12-07 2023-05-26 深圳市智税链科技有限公司 Method, proxy node and medium for determining accounting node in blockchain network
CN110247815A (en) * 2019-05-09 2019-09-17 深圳市迅雷网络技术有限公司 A kind of data transmission method, device, system and computer readable storage medium
CN110830565A (en) * 2019-10-31 2020-02-21 北京奇艺世纪科技有限公司 Resource downloading method, device, system, electronic equipment and storage medium
CN112738255A (en) * 2020-12-30 2021-04-30 江西格灵如科科技有限公司 Downloading and distributing processing method, terminal and system for VR resources

Also Published As

Publication number Publication date
CN103312752B (en) 2016-07-06

Similar Documents

Publication Publication Date Title
CN103312752A (en) P2P (Peer to Peer) network information distribution method, downloading node, index server and P2P network information distribution system
CN102065112B (en) Peer-to-peer (P2P) network system and method and related device for establishing the same
EP2063598A1 (en) A resource delivery method, system and edge server
EP3439239A1 (en) Data transmission method and system based on peer-to-peer network
CN106790340B (en) Link scheduling method and device
RU2012118601A (en) SYSTEM AND METHOD FOR PROVIDING MORE FAST AND MORE EFFECTIVE DATA TRANSFER
CN101997891B (en) Method, device and system for allocating P2P media stream
WO2019148569A1 (en) Method and system for sending request for acquiring data resource
CN101729425B (en) Method and equipment for flow sending in VRRP networking
US20130297703A1 (en) Peer node and method for improved peer node selection
US9591069B2 (en) Peer-to-peer assist for live media streaming
CN107689878A (en) TCP length connection SiteServer LBSs based on name scheduling
CN100563197C (en) A kind of image sharing system and method
CN103944979A (en) Method, device and system for message pushing
CN100505662C (en) Method for setting point-to-point data channel
CN113382065A (en) File downloading method, device, system, equipment and storage medium
CN101340457B (en) Peer-to-peer network starting method and system independent of central server
CN107332771B (en) Method for guaranteeing routing consistency, router and routing system
CN102497402B (en) Content injection method and system thereof, and content delivery method and system thereof
CN101610289A (en) The methods, devices and systems of data download and node
CN106209666B (en) Link multiplexing method and system based on load balancer
CN107592643A (en) A kind of a large amount of AP based on online user's amount while processing method of reaching the standard grade
CN113055444A (en) File sharing method and related device thereof
CN107528884B (en) User request processing method and device of aggregation server
Hong et al. ISI: Integration of search and incentive strategy in p2p systems

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