CN103327121A - P2P (Peer-to-Peer Network) network resource transmission method and device for same - Google Patents

P2P (Peer-to-Peer Network) network resource transmission method and device for same Download PDF

Info

Publication number
CN103327121A
CN103327121A CN2013102888978A CN201310288897A CN103327121A CN 103327121 A CN103327121 A CN 103327121A CN 2013102888978 A CN2013102888978 A CN 2013102888978A CN 201310288897 A CN201310288897 A CN 201310288897A CN 103327121 A CN103327121 A CN 103327121A
Authority
CN
China
Prior art keywords
node
server
information
network
listing
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
CN2013102888978A
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.)
Yeelion Online Network Technology Beijing Co Ltd
Original Assignee
Yeelion Online Network Technology Beijing 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 Yeelion Online Network Technology Beijing Co Ltd filed Critical Yeelion Online Network Technology Beijing Co Ltd
Priority to CN2013102888978A priority Critical patent/CN103327121A/en
Publication of CN103327121A publication Critical patent/CN103327121A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
    • H04L67/1063Discovery through centralising entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/101Server selection for load balancing based on network conditions

Abstract

The invention relates to the field of network technology, and especially relates to a P2P network resource transmission method and a system for the same. The method comprises the following steps that: a server presets a node connection information table, wherein the node connection information table is built according to the node connection information fed back to the server by the network nodes, and is used for indicating the connection quality of the network nodes; the server receives a query request sent by the network nodes, the query request comprises the resource information requested to be downloaded; the server obtains the node having the corresponding resource according to the resource information contained in the query request, screens the node according to the preset node connection information, and returns back the node list, so as to make the network node transmitting the query request build a connection with the corresponding node according to the node address information in the node list when receiving the node list so as to perform resource transmission. By utilizing the method and the device, the list of the nodes with high network connection quality can be returned back to the network node preferentially, resource transmission efficiency of the network node is improved, and the transmission effect is promoted.

Description

A kind of P2P Internet resources transmission method and device
Technical field
The present invention relates to networking technology area, particularly relate to a kind of P2P Internet resources transmission method and device.
Background technology
P2P(Peer to Peer, peer-to-peer network) network can be called point to point network again, and network node can be shared the resource that they have, and these shared resources can directly be visited by other peer node (Peer) in the network and need not through intermediate entities.In the P2P network, each node in the network both can be resource provider, also can be resource acquisition person, and internodal status is reciprocity.
In the P2P of centralization system, comprise P2P server and several P2P clients (being the P2P network node).Each node in the P2P network can be reported one's own the Resources list to the P2P server.When a node need be downloaded corresponding resource, for example download a video file, then can look into down the node listing that has this video file to the P2P server, connect according to the address information in the node listing and node then, obtain corresponding file resource.
In the stream media P 2 P download system, owing to need play for the flow process that guarantees media file for the user provides the service of online broadcast media file, the speed of download of downloading early stage there is higher requirement.Therefore and the connection effect between the different nodes is different in the P2P network, and the speed of downloading and node listing that server returns have very big related.This node listing that just needs the P2P server to return is placed on the front with high-quality node as far as possible, in order to improve the player downloads speed of medium, to reduce the card of the playing rate of pausing.
In the P2P Internet resources transmission method that exists in the prior art, when P2P received the query requests of P2P download node, meeting be returned according to the network type of downloading node and download the node that node has the identical network type, thereby improved speed of download.This method can be so that have between the node of identical network type and transmit data as much as possible, to improve transmission speed.Yet the factor that this method is considered is more single, not necessarily can successfully connect between the node of consolidated network type, and more accurate, rational node listing can't be provided, to improve the transmission speed between the node.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of P2P Internet resources transmission method and device, can provide more optimal node listing for network node, thereby improves data transmission efficiency between the node.
According to the first aspect of the embodiment of the invention, a kind of P2P Internet resources transmission method is disclosed, comprising:
Server is set up node communication information table in advance, and described node communication information table is to set up to the node link information of server feedback according to network node, is used for showing the quality of connection of network node;
Server receives the query requests that network node sends, and described query requests comprises the resource information that request is downloaded;
The resource information that server comprises according to described query requests is obtained the node that has corresponding resource, according to the node communication information of setting up in advance node is screened, the return node tabulation connects carry out resource transmission according to the node address information in the node listing and respective nodes so that send the network node of query requests when receiving node listing.
Further, described method also comprises:
Server receives to be uploaded network node and finishes the daily record of uploading that the back sends in the task of uploading, and describedly uploads daily record and comprises the node link information at least, and described node link information comprises one or more information in transmission data bulk, transmission time, the transmission rate.
Further, described method also comprises:
Server receives the download network node and finishes the download log that the back sends in downloading task, described download log comprises the node link information at least, described node link information whether comprise with node listing in successfully connect one or more information in information, transmission data bulk, transmission time, the transmission rate of node.
Further, described server is set up node communication information table in advance and is comprised:
Server is that the factor in the node link information is given different weights, obtains the score of node according to the weight of each factor, generates node communication information table.
Further, the node communication information that described basis is set up is in advance screened node, and the return node tabulation comprises:
From obtain all nodes that have corresponding resource, the node score information according in the node communication information sorts to node;
Obtain a predetermined quantity node that comes the front, generate node listing, and described node listing is back to the network node that sends query requests.
Further, the node communication information that described basis is set up is in advance screened node, and the return node tabulation comprises:
From obtain all nodes that have corresponding resource, node of picked at random;
Obtain the score of described node, score and first predetermined threshold value of described node compared, obtain first comparative result;
The score that shows described node when described first comparative result adds node listing with described node during greater than first predetermined threshold value; Otherwise, abandon this node, enter the step of a node of picked at random;
Repeat above-mentioned steps, up to obtaining a predetermined number node, generate node listing, and described node listing is back to the network node that sends query requests.
Further, the node communication information that described basis is set up is in advance screened node, and the return node tabulation comprises:
From obtain all nodes that have corresponding resource, node of picked at random;
Obtain the score of described node, generate second threshold value at random, score and described second threshold value of described node compared, obtain second comparative result;
The score that shows described node when described second comparative result adds node listing with described node during greater than described second threshold value; Otherwise, abandon this node;
The picked at random next node repeats above-mentioned comparison procedure, up to obtaining a predetermined number node, generates node listing, and described node listing is back to the network node that sends query requests.
According to the second aspect of the embodiment of the invention, a kind of P2P server is disclosed, described P2P server comprises:
Set up the unit, be used for setting up in advance node communication information table, described node communication information table is to set up to the node link information of server feedback according to network node, is used for showing the quality of connection of network node;
First receiving element is used for receiving the query requests that network node sends, and described query requests comprises the resource information that request is downloaded;
The screening unit, be used for obtaining the node that has corresponding resource according to the resource information that described query requests comprises, according to the node communication information of setting up in advance node is screened, the return node tabulation connects carry out resource transmission according to the node address information in the node listing and respective nodes so that send the network node of query requests when receiving node listing.
According to the third aspect of the embodiment of the invention, a kind of P2P networking client is disclosed, described client comprises:
Request unit is used for initiating query requests to server, and described query requests comprises the resource information that request is downloaded;
Second receiving element, be used for the node listing that reception server returns, described node listing is to obtain the node that has corresponding resource by the resource information that described server comprises according to described query requests, according to the node communication information set up in advance node is screened to generate;
Linkage unit is used for connecting according to node address information and the respective nodes of node listing, carries out resource transmission.
According to the fourth aspect of the embodiment of the invention, a kind of P2P system is disclosed, described system comprises the P2P server and client side, wherein:
Described P2P server is used for setting up in advance node communication information table, and described node communication information table is to set up to the node link information of server feedback according to network node, is used for showing the quality of connection of network node; And, receive the query requests that network node sends, obtain the node that has corresponding resource according to the resource information that described query requests comprises, node is screened the return node tabulation according to the node communication information of setting up in advance;
Described client is used for initiating query requests to server, and described query requests comprises the resource information that request is downloaded; And the node listing that reception server returns also connects according to the node address information in the node listing and respective nodes, carries out resource transmission.
The beneficial effect that the embodiment of the invention can reach is: in P2P Internet resources transmission method provided by the invention, network node can be to server feedback node link information, server can generate node communication information table according to described node link information, and described node communication information table is used for showing the quality of connection of network node.When server receives network node when comprising the query requests of downloaded resources information, then the resource information that comprises according to described query requests is obtained the node that has corresponding resource, according to the node communication information of setting up in advance node is screened, the return node tabulation, so that network node connects according to the node address information in the node listing and respective nodes, carry out resource transmission.In method provided by the invention, owing to set up node communication information table according to the node link information of network node feedback in advance, therefore can screen the network node that has downloaded resources according to the network node quality of connection that reflects in the node communication information table, preferentially return the node listing with higher network quality of connection to network node, thereby improved the resource transmission efficient of network node, promoted laser propagation effect.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, the accompanying drawing that describes below only is some embodiment that put down in writing among the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The P2P Internet resources transmission method first embodiment schematic diagram that Fig. 1 provides for the embodiment of the invention;
The P2P Internet resources transmission method second embodiment schematic diagram that Fig. 2 provides for the embodiment of the invention;
P2P Internet resources transmission method the 3rd embodiment schematic diagram that Fig. 3 provides for the embodiment of the invention;
The P2P server schematic diagram that Fig. 4 provides for the embodiment of the invention;
The P2P networking client schematic diagram that Fig. 5 provides for the embodiment of the invention;
The P2P system one embodiment schematic diagram that Fig. 6 provides for the embodiment of the invention;
Another embodiment schematic diagram of P2P system that Fig. 7 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of P2P Internet resources transmission method and device, can provide more optimal node listing for network node, thereby improves data transmission efficiency between the node.
In order to make those skilled in the art person understand technical scheme among the present invention better, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills should belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Referring to Fig. 1, the P2P Internet resources transmission method first embodiment schematic diagram that provides for the embodiment of the invention.
First embodiment of the invention provides a kind of P2P Internet resources transmission method, comprising:
S101, server set up node communication information table in advance, and described node communication information table is to set up to the node link information of server feedback according to network node, is used for showing the quality of connection of network node.
In embodiments of the present invention, the P2P system comprises P2P server and several clients, can be referred to as network node again.Network node can be to server sending node link information, and described node link information can comprise whether successfully connecting, in transmit data bulk (for example transmitting the number of packet), transmission time, transmission rate information, resource integrity degree information one or more.Server is that the factor in the node link information is given different weights, obtains the score of node according to the weight of each factor, generates node communication information table, and described node communication information table is used for showing the quality of connection of network node.During specific implementation, can give different weights for different factors, thereby obtain the average of node.For example, successfully whether for to give weight be 0.3 to the factor of connecting, and the weight of transmission rate is 0.5, and the weight of node resource integrity degree is 0.2.When successfully connecting, giving mark for node is 10 minutes, and it is 0 minute that not successful connected node is given mark.During no corresponding information, can be adopted as it and give the acquiescence score value.By that analogy, for different factors is marked, and according to the score of the weight calculation node of giving, like this, namely can obtain the score of node.Further, because server can constantly obtain the node link information that network node sends, therefore can bring in constant renewal in node communication information table.Further, can also give different weights with up-to-date link information for historical connection information.For example, obtain nearest 100 times node link information, for the node score that 30 times nearest link informations obtain is given weight 0.5, for the node score that all the other 70 link informations obtain is given weight 0.5.The purpose of doing like this is according to the node link information of real-time update new node communication information table more, so that node communication information table reflects the connection quality that node is up-to-date more truly, objectively.The node score is more high, shows that the quality of connection of node is more high.Certainly, it will be appreciated by persons skilled in the art that the above exemplary illustration that only is, the foundation of node communication information table can also be adopted other implementations, and the present invention does not limit this.As long as can reflect the quality of connection of network node, those skilled in the art all belong to protection scope of the present invention not paying other implementations of obtaining under the creative work.
During specific implementation, according to the node link information source of the network node that obtains and the difference of content, step S101 has different implementations.A kind of possible implementation is: server receives to be uploaded network node and finishes the daily record of uploading that the back sends in the task of uploading, and uploads the node link information that daily record comprises and sets up node communication information table according to described.Wherein, describedly upload daily record and comprise the node link information at least, described node link information comprises one or more information in transmission data bulk, transmission time, the transmission rate.In the P2P system, after the download network node sends query requests to the P2P server, tabulated to downloading the network node return node by the P2P server, by the network node of downloading in the tabulation of node connected node of uploading, to download data.After uploading network node and download network node and successfully connecting, namely to downloading network node transfer resource data.After the task of uploading of uploading network node is finished, namely send to server and upload daily record.Describedly upload daily record and comprise the node link information at least, concrete can comprise information such as the number of this time uploading the task data packets for transmission, transmission total time, transmission rate.After server obtains above-mentioned information, namely can analyze above-mentioned information, and generate node communication information table according to the default strategy that arranges.Concrete implementation can realize according to the mode of above introducing.
During specific implementation, the implementation of step S101 another possibility is: server receives the download network node and finishes the download log that the back sends in downloading task, sets up node communication information table according to the node link information that described download log comprises.Wherein, described download log comprises the node link information at least, described node link information whether comprise with node listing in successfully connect one or more information in information, transmission data bulk, transmission time, the transmission rate of node.In the P2P system, after the download network node sends query requests to the P2P server, tabulated to downloading the network node return node by the P2P server, by the network node of downloading in the tabulation of node connected node of uploading, to download data.After downloading network node and uploading network node and successfully connect, namely receive and upload the resource data that network node sends.After the downloading task of downloading network node is finished, namely send download log to server.Described download log comprises the node link information at least, concrete whether can comprise with node listing in upload information that network node successfully connects, information such as number, transmission total time, transmission rate of downloading task data packets for transmission this time.After server obtains above-mentioned information, namely can analyze above-mentioned information, and generate node communication information table according to the default strategy that arranges.Because whether the download network node can send and upload the information that network node successfully connects to server, so can weigh the network connection quality of uploading network node better.After server gets access to above-mentioned information, namely can handle to obtain the score of uploading network node to uploading network node information, to generate node communication information table.
Certainly, need to prove that when initial condition, node communication information table is empty, the score of each network node is zero.Can preferentially obtain the node communication information that uploading nodes sends, to generate node communication information table.
S102, server receives the query requests that network node sends, and described query requests comprises the resource information that request is downloaded.
When the download network node needs the downloaded resources data, then send query requests to server, described query requests comprises the resource information that request is downloaded, for example file name information.
S103, the resource information that server comprises according to described query requests is obtained the node that has corresponding resource, according to the node communication information of setting up in advance node is screened, the return node tabulation connects carry out resource transmission according to the node address information in the node listing and respective nodes so that send the network node of query requests when receiving node listing.
During specific implementation, step S103 has multiple implementation.Wherein, a kind of possible implementation is: server is from obtain all nodes that have corresponding resource, and the node score information according in the node communication information sorts to node; Obtain a predetermined quantity node that comes the front, generate node listing, and described node listing is back to the network node that sends query requests.A predetermined quantity node can be set by server, also can obtain in the query requests of network node.
Wherein, in the implementation of another possibility, server from obtain all nodes that have corresponding resource, node of picked at random; Obtain the score of described node, score and first predetermined threshold value of described node compared, obtain first comparative result; The score that shows described node when described first comparative result adds node listing with described node during greater than first predetermined threshold value; Otherwise, abandon this node, enter the step of a node of picked at random; Repeat above-mentioned steps, up to obtaining a predetermined number node, generate node listing, and described node listing is back to the network node that sends query requests.
Wherein, in the implementation of another possibility, from obtain all nodes that have corresponding resource, node of picked at random; Obtain the score of described node, utilize randomizer to generate second threshold value at random, score and described second threshold value of described node compared, obtain second comparative result; The score that shows described node when described second comparative result adds node listing with described node during greater than described second threshold value; Otherwise, abandon this node; The picked at random next node, generate the 3rd threshold value then at random, mark and described the 3rd threshold value of the node of picked at random are compared, when the mark of described node during greater than the 3rd threshold value, then described node is added node listing ... repeat above-mentioned selection, comparison procedure, up to obtaining a predetermined number node, all nodes that obtain are sorted according to the node mark is descending, generate node listing, and described node listing is back to the network node that sends query requests.In this implementation, the selected probability of the node that mark is high is higher than the low node of mark, and this strategy has guaranteed preferentially to select high partial node, but also can too not use high partial node.Because the score distribution of the node little distribution broad in the middle that is two.And generate the mode of compare threshold at random, and can select network connection quality node preferably again so that the high score node is not too used, promoted laser propagation effect.
Further, described method also comprises: the address information of obtaining the network node that sends query requests, judge the network type of described network node according to the address information of network node, preferentially choose the node that has resource that has an identical network type with described network node and add node listing.
Further, described method also comprises: judge the quantity that the node have corresponding resource has connected, the quantity that has connected when described node is rejected node listing with described node during greater than the 4th threshold value.
When server screens the acquisition node listing according to the node communication information of setting up in advance to node after, namely send described node listing to the network node that sends query requests, so that described network node connects to carry out resource transmission according to the node address information in the node listing and respective nodes when receiving node listing.
In first embodiment of the invention, network node can be to server feedback node link information, and server can generate node communication information table according to described node link information, and described node communication information table is used for showing the quality of connection of network node.When server receives network node when comprising the query requests of downloaded resources information, then the resource information that comprises according to described query requests is obtained the node that has corresponding resource, according to the node communication information of setting up in advance node is screened, the return node tabulation, so that network node connects according to the node address information in the node listing and respective nodes, carry out resource transmission.In method provided by the invention, owing to set up node communication information table according to the node link information of network node feedback in advance, therefore can screen the network node that has downloaded resources according to the network node quality of connection that reflects in the node communication information table, preferentially return the node listing with higher network quality of connection to network node, thereby improved the resource transmission efficient of network node, promoted laser propagation effect.
The P2P Internet resources transmission method second embodiment schematic diagram that Fig. 2 provides for the embodiment of the invention.
In this embodiment, the P2P network system comprises server and several clients (being network node).Wherein, described server comprises node searching server, log server, data analytics server.Wherein, the node searching server is used for receiving inquiry or the download request of network node, and tabulates to the network node return node.Described log server is used for receiving the daily record that network node sends, data analytics server is used for receiving the log information that log server sends, and according to the generation of the deciphering link information in log information node communication information table, and when the node searching server sends request, send up-to-date node communication information table to it.
S201, the download network node sends query requests or download request to the node searching server.
Wherein, described query requests or download request comprise the resource information that request is downloaded.
S202, P2P node searching server obtains the node that has corresponding resource according to resource information, and utilizes the node communication information of setting up in advance that node is screened, the return node tabulation.
S203, download network node be the uploading nodes in the connected node tabulation successively, with described upload network node and successfully connect after, obtain the downloaded resources data from the described network node of uploading.
S204 uploads network node and finishes the after image log server in the task of uploading and send file and upload daily record.
Wherein, file is uploaded daily record and is comprised the node link information at least, and described node link information comprises one or more information in transmission data bulk, transmission time, the transmission rate.
S205, log server upload daily record with the file of node and gather and send to data analytics server.
S206, the node link information that data analytics server is uploaded in the daily record according to file is given a mark to node, generates node communication information table.
S207, P2P node searching server is regularly to the up-to-date node communication information table of data analytics server request.
S208, receive the inquiry or download request of node when P2P node searching server after, then utilize the up-to-date node communication information table obtain that node is screened, tabulate to the node return node.
Repeat above-mentioned steps, then can bring in constant renewal in node communication information table, think that the download network node preferentially returns the nodal information with higher network quality of connection.
In second embodiment of the invention, uploading network node can be to server feedback node link information, server can generate node communication information table according to described node link information, and described node communication information table is used for showing the quality of connection of uploading network node.When server receives network node when comprising the query requests of downloaded resources information, then the resource information that comprises according to described query requests is obtained the node that has corresponding resource, according to the node communication information of setting up in advance node is screened, the return node tabulation, so that network node connects according to the node address information in the node listing and respective nodes, carry out resource transmission.In method provided by the invention, owing to set up node communication information table according to the node link information of uploading the network node feedback in advance, therefore can screen the network node of uploading that has downloaded resources according to the network connection quality of uploading network node that reflects in the node communication information table, preferentially return the node listing with higher network quality of connection to downloading network node, thereby improved the resource transmission efficient of network node, promoted laser propagation effect.
P2P Internet resources transmission method the 3rd embodiment schematic diagram that Fig. 3 provides for the embodiment of the invention.
In this embodiment, the P2P network system comprises server and several clients (being network node).Wherein, described server comprises node searching server, log server, data analytics server.Wherein, the node searching server is used for receiving inquiry or the download request of download network node, and to downloading the tabulation of network node return node.Described log server is used for receiving the daily record that network node sends, data analytics server is used for receiving the log information that log server sends, and according to the generation of the deciphering link information in log information node communication information table, and when the node searching server sends request, send up-to-date node communication information table to it.
S301, the download network node sends query requests or download request to the node searching server.
Wherein, described query requests or download request comprise the resource information that request is downloaded.
S302, P2P node searching server obtains the node that has corresponding resource according to resource information, and utilizes the node communication information of setting up in advance that node is screened, the return node tabulation.
S303, download network node upload network node in the connected node tabulation successively, with described upload network node and successfully connect after, obtain the downloaded resources data from the described network node of uploading.
S304, download network node finish the after image log server in downloading task and send the file download log.
Wherein, the file download log comprises the node link information at least, described node link information whether comprise with node listing in successfully connect one or more information in information, transmission data bulk, transmission time, the transmission rate of node.
S305, log server gather the file download log of node and send to data analytics server.
S306, data analytics server is given a mark to uploading network node according to the node link information in the file download log, generates node communication information table.
S307, P2P node searching server is regularly to the up-to-date node communication information table of data analytics server request.
S308, receive the inquiry or download request of node when P2P node searching server after, then utilize the up-to-date node communication information table obtain that node is screened, tabulate to the node return node.
Repeat above-mentioned steps, then can bring in constant renewal in node communication information table, think that the download network node preferentially returns the nodal information with higher network quality of connection.
In third embodiment of the invention, the download network node can be to server feedback node link information, server can generate node communication information table according to described node link information, and described node communication information table is used for showing the quality of connection of uploading network node.When server receives network node when comprising the query requests of downloaded resources information, then the resource information that comprises according to described query requests is obtained the node that has corresponding resource, according to the node communication information of setting up in advance node is screened, the return node tabulation, so that network node connects according to the node address information in the node listing and respective nodes, carry out resource transmission.In method provided by the invention, owing to set up node communication information table according to the node link information of download network node feedback in advance, therefore can screen the network node of uploading that has downloaded resources according to the network connection quality of uploading network node that reflects in the node communication information table, preferentially return the node listing with higher network quality of connection to downloading network node, thereby improved the resource transmission efficient of network node, promoted laser propagation effect.
It will be appreciated by persons skilled in the art that above-described embodiment all can change, is out of shape, makes up and obtain other implementations, all belong to protection scope of the present invention.
The P2P server schematic diagram that Fig. 4 provides for the embodiment of the invention.
A kind of P2P server, described P2P server comprises:
Set up unit 401, be used for setting up in advance node communication information table, described node communication information table is to set up to the node link information of server feedback according to network node, is used for showing the quality of connection of network node;
First receiving element 402 is used for receiving the query requests that network node sends, and described query requests comprises the resource information that request is downloaded;
Screening unit 403, be used for obtaining the node that has corresponding resource according to the resource information that described query requests comprises, according to the node communication information of setting up in advance node is screened, the return node tabulation connects carry out resource transmission according to the node address information in the node listing and respective nodes so that send the network node of query requests when receiving node listing.
Further, described first receiving element also is used for:
Reception is uploaded network node and is finished the daily record of uploading that the back sends in the task of uploading, and describedly uploads daily record and comprises the node link information at least, and described node link information comprises one or more information in transmission data bulk, transmission time, the transmission rate.
Further, described first receiving element also is used for:
Receive the download network node and finish the download log that the back sends in downloading task, described download log comprises the node link information at least, described node link information whether comprise with node listing in successfully connect one or more information in information, transmission data bulk, transmission time, the transmission rate of node.
Further, the described unit of setting up specifically is used to the factor in the node link information to give different weights, obtains the score of node according to the weight of each factor, generates node communication information table.
Further, described screening unit comprises:
Sequencing unit is used for from obtaining all nodes that have corresponding resource, and the node score information according in the node communication information sorts to node;
First acquiring unit is used for obtaining a predetermined quantity node that comes the front, generates node listing, and described node listing is back to the network node that sends query requests.
Further, described screening unit comprises:
First chooses the unit, is used for from obtaining all nodes that have corresponding resource, node of picked at random;
First comparing unit is used for obtaining the score of described node, and score and first predetermined threshold value of described node compared, and obtains first comparative result;
First adding device, the score that is used for showing described node when described first comparative result are during greater than first predetermined threshold value, with described node adding node listing; Otherwise, abandon this node;
First iteration unit is used for repeating above-mentioned steps, up to obtaining a predetermined number node, generates node listing, and described node listing is back to the network node that sends query requests.
Further, described screening unit comprises:
Second chooses the unit, is used for from obtaining all nodes that have corresponding resource, node of picked at random;
Second comparing unit is used for obtaining the score of described node, generates second threshold value at random, and score and described second threshold value of described node compared, and obtains second comparative result;
Second adding device, the score that is used for showing described node when described second comparative result are during greater than described second threshold value, with described node adding node listing; Otherwise, abandon this node;
The secondary iteration unit is used for the picked at random next node, repeats above-mentioned comparison procedure, up to obtaining a predetermined number node, generates node listing, and described node listing is back to the network node that sends query requests.
The P2P networking client schematic diagram that Fig. 5 provides for the embodiment of the invention.
A kind of P2P networking client, described client comprises:
Request unit 501 is used for initiating query requests to server, and described query requests comprises the resource information that request is downloaded;
Second receiving element 502, be used for the node listing that reception server returns, described node listing is to obtain the node that has corresponding resource by the resource information that described server comprises according to described query requests, according to the node communication information set up in advance node is screened to generate;
Linkage unit 503 is used for connecting according to node address information and the respective nodes of node listing, carries out resource transmission.
Further, described client also comprises:
First transmitting element is used for finishing the back in the task of uploading and sends to server and upload daily record, describedly uploads daily record and comprises the node link information at least, and described node link information comprises one or more information in transmission data bulk, transmission time, the transmission rate.
Second transmitting element, be used for finishing the back in downloading task and send download log to server, described download log comprises the node link information at least, described node link information whether comprise with node listing in successfully connect one or more information in information, transmission data bulk, transmission time, the transmission rate of node.
The P2P system schematic that Fig. 6 provides for the embodiment of the invention.
A kind of P2P system, described system comprises P2P server 400 and client 500, wherein:
Described P2P server 400 is used for setting up in advance node communication information table, and described node communication information table is to set up to the node link information of server feedback according to network node, is used for showing the quality of connection of network node; And, receive the query requests that network node sends, obtain the node that has corresponding resource according to the resource information that described query requests comprises, node is screened the return node tabulation according to the node communication information of setting up in advance;
Described client 500 is used for initiating query requests to server, and described query requests comprises the resource information that request is downloaded; And the node listing that reception server returns also connects according to the node address information in the node listing and respective nodes, carries out resource transmission.
The specific implementation that it will be appreciated by persons skilled in the art that above-mentioned server, client all can realize with reference to other modes of installing embodiment and providing.
Referring to Fig. 7, be another embodiment schematic diagram of P2P provided by the invention system.In this embodiment, the P2P network system comprises server and several clients (being network node).Wherein, described server comprises node searching server, log server, data analytics server.Wherein, the node searching server is used for receiving inquiry or the download request of download network node, and to downloading the tabulation of network node return node.Described log server is used for receiving the daily record that network node sends, data analytics server is used for receiving the log information that log server sends, and according to the generation of the deciphering link information in log information node communication information table, and when the node searching server sends request, send up-to-date node communication information table to it.
Need to prove, in this article, relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or in proper order between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.Do not having under the situation of more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The present invention can describe in the general context of the computer executable instructions of being carried out by computer, for example program unit.Usually, program unit comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment (DCE), put into practice the present invention, in these distributed computing environment (DCE), be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment (DCE), program unit can be arranged in the local and remote computer-readable storage medium that comprises memory device.
The above only is the specific embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. a P2P Internet resources transmission method is characterized in that, comprising:
Server is set up node communication information table in advance, and described node communication information table is to set up to the node link information of server feedback according to network node, is used for showing the quality of connection of network node;
Server receives the query requests that network node sends, and described query requests comprises the resource information that request is downloaded;
The resource information that server comprises according to described query requests is obtained the node that has corresponding resource, according to the node communication information of setting up in advance node is screened, the return node tabulation connects carry out resource transmission according to the node address information in the node listing and respective nodes so that send the network node of query requests when receiving node listing.
2. method according to claim 1 is characterized in that, described method also comprises:
Server receives to be uploaded network node and finishes the daily record of uploading that the back sends in the task of uploading, and describedly uploads daily record and comprises the node link information at least, and described node link information comprises one or more information in transmission data bulk, transmission time, the transmission rate.
3. method according to claim 1 is characterized in that, described method also comprises:
Server receives the download network node and finishes the download log that the back sends in downloading task, described download log comprises the node link information at least, described node link information whether comprise with node listing in successfully connect one or more information in information, transmission data bulk, transmission time, the transmission rate of node.
4. method according to claim 1 is characterized in that, described server is set up node communication information table in advance and comprised:
Server is that the factor in the node link information is given different weights, obtains the score of node according to the weight of each factor, generates node communication information table.
5. according to the method for claim 4, it is characterized in that the node communication information that described basis is set up is in advance screened node, the return node tabulation comprises:
From obtain all nodes that have corresponding resource, the node score information according in the node communication information sorts to node;
Obtain a predetermined quantity node that comes the front, generate node listing, and described node listing is back to the network node that sends query requests.
6. method according to claim 4 is characterized in that, the node communication information that described basis is set up is in advance screened node, and the return node tabulation comprises:
From obtain all nodes that have corresponding resource, node of picked at random;
Obtain the score of described node, score and first predetermined threshold value of described node compared, obtain first comparative result;
The score that shows described node when described first comparative result adds node listing with described node during greater than first predetermined threshold value; Otherwise, abandon this node, enter the step of a node of picked at random;
Repeat above-mentioned steps, up to obtaining a predetermined number node, generate node listing, and described node listing is back to the network node that sends query requests.
7. method according to claim 4 is characterized in that, the node communication information that described basis is set up is in advance screened node, and the return node tabulation comprises:
From obtain all nodes that have corresponding resource, node of picked at random;
Obtain the score of described node, generate second threshold value at random, score and described second threshold value of described node compared, obtain second comparative result;
The score that shows described node when described second comparative result adds node listing with described node during greater than described second threshold value; Otherwise, abandon this node;
The picked at random next node repeats above-mentioned comparison procedure, up to obtaining a predetermined number node, generates node listing, and described node listing is back to the network node that sends query requests.
8. a P2P server is characterized in that, described P2P server comprises:
Set up the unit, be used for setting up in advance node communication information table, described node communication information table is to set up to the node link information of server feedback according to network node, is used for showing the quality of connection of network node;
First receiving element is used for receiving the query requests that network node sends, and described query requests comprises the resource information that request is downloaded;
The screening unit, be used for obtaining the node that has corresponding resource according to the resource information that described query requests comprises, according to the node communication information of setting up in advance node is screened, the return node tabulation connects carry out resource transmission according to the node address information in the node listing and respective nodes so that send the network node of query requests when receiving node listing.
9. a P2P networking client is characterized in that, described client comprises:
Request unit is used for initiating query requests to server, and described query requests comprises the resource information that request is downloaded;
Second receiving element, be used for the node listing that reception server returns, described node listing is to obtain the node that has corresponding resource by the resource information that described server comprises according to described query requests, according to the node communication information set up in advance node is screened to generate;
Linkage unit is used for connecting according to node address information and the respective nodes of node listing, carries out resource transmission.
10. a P2P system is characterized in that, described system comprises the P2P server and client side, wherein:
Described P2P server is used for setting up in advance node communication information table, and described node communication information table is to set up to the node link information of server feedback according to network node, is used for showing the quality of connection of network node; And, receive the query requests that network node sends, obtain the node that has corresponding resource according to the resource information that described query requests comprises, node is screened the return node tabulation according to the node communication information of setting up in advance;
Described client is used for initiating query requests to server, and described query requests comprises the resource information that request is downloaded; And the node listing that reception server returns also connects according to the node address information in the node listing and respective nodes, carries out resource transmission.
CN2013102888978A 2013-07-10 2013-07-10 P2P (Peer-to-Peer Network) network resource transmission method and device for same Pending CN103327121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102888978A CN103327121A (en) 2013-07-10 2013-07-10 P2P (Peer-to-Peer Network) network resource transmission method and device for same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102888978A CN103327121A (en) 2013-07-10 2013-07-10 P2P (Peer-to-Peer Network) network resource transmission method and device for same

Publications (1)

Publication Number Publication Date
CN103327121A true CN103327121A (en) 2013-09-25

Family

ID=49195642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102888978A Pending CN103327121A (en) 2013-07-10 2013-07-10 P2P (Peer-to-Peer Network) network resource transmission method and device for same

Country Status (1)

Country Link
CN (1) CN103327121A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735115A (en) * 2013-12-24 2015-06-24 乐视网信息技术(北京)股份有限公司 P2P downloading method and device
US20160381101A1 (en) * 2015-06-26 2016-12-29 Onwards Media Group Pte Ltd Method and apparatus for streaming media
CN106603703A (en) * 2016-12-29 2017-04-26 北京奇艺世纪科技有限公司 Back-to-source node determination method and apparatus
CN106790689A (en) * 2017-02-20 2017-05-31 网宿科技股份有限公司 Nodes recommendations method based on peer-to-peer network, server and client side
CN108206862A (en) * 2017-12-27 2018-06-26 努比亚技术有限公司 The distribution method and diostribution device of Web content point
CN110266438A (en) * 2019-07-01 2019-09-20 深圳市迅雷网络技术有限公司 A kind of data transmission method, device, system and computer readable storage medium
CN111435946A (en) * 2019-01-15 2020-07-21 阿里巴巴集团控股有限公司 Method, device, terminal equipment and system for downloading resources
CN111756577A (en) * 2020-06-23 2020-10-09 中国工商银行股份有限公司 Fault detection method, apparatus, detection device and medium executed by detection device
CN111770188A (en) * 2020-07-03 2020-10-13 珠海西山居移动游戏科技有限公司 BT (bit BT) download node management method and device
CN111934825B (en) * 2020-09-23 2021-03-02 南京金宁汇科技有限公司 Information transmission method based on block chain and storage medium
CN114666324A (en) * 2022-03-28 2022-06-24 重庆紫光华山智安科技有限公司 Download method of monitoring video, server, client and readable storage medium
CN116095092A (en) * 2023-04-11 2023-05-09 湖南快乐阳光互动娱乐传媒有限公司 Peer node selection method and device
US11763338B1 (en) * 2017-09-28 2023-09-19 Amazon Technologies, Inc. Attributing conversion events to viewable content impressions using multiple efficacy attributes

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562804A (en) * 2009-05-12 2009-10-21 中兴通讯股份有限公司 Region management server system based on mobile P2P and deploying method thereof
CN101662508A (en) * 2009-09-11 2010-03-03 华为技术有限公司 Method for data transmission based on point-to-point protocol, device and system thereof
CN101741750A (en) * 2010-01-15 2010-06-16 中国科学院计算技术研究所 Resource downloading method in P2P (peer-to peer) and system thereof
CN101938509A (en) * 2009-06-29 2011-01-05 日电(中国)有限公司 Server, method and system for providing node information for P2P (Peer-to-Peer) network
EP2418824A1 (en) * 2009-04-08 2012-02-15 ZTE Corporation Method for resource information backup operation based on peer to peer network and peer to peer network thereof
CN102868741A (en) * 2012-09-07 2013-01-09 四川长虹电器股份有限公司 Method for improving peer-to-peer (P2P) data transmission efficiency

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2418824A1 (en) * 2009-04-08 2012-02-15 ZTE Corporation Method for resource information backup operation based on peer to peer network and peer to peer network thereof
CN101562804A (en) * 2009-05-12 2009-10-21 中兴通讯股份有限公司 Region management server system based on mobile P2P and deploying method thereof
CN101938509A (en) * 2009-06-29 2011-01-05 日电(中国)有限公司 Server, method and system for providing node information for P2P (Peer-to-Peer) network
CN101662508A (en) * 2009-09-11 2010-03-03 华为技术有限公司 Method for data transmission based on point-to-point protocol, device and system thereof
CN101741750A (en) * 2010-01-15 2010-06-16 中国科学院计算技术研究所 Resource downloading method in P2P (peer-to peer) and system thereof
CN102868741A (en) * 2012-09-07 2013-01-09 四川长虹电器股份有限公司 Method for improving peer-to-peer (P2P) data transmission efficiency

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735115A (en) * 2013-12-24 2015-06-24 乐视网信息技术(北京)股份有限公司 P2P downloading method and device
US20160381101A1 (en) * 2015-06-26 2016-12-29 Onwards Media Group Pte Ltd Method and apparatus for streaming media
CN106603703A (en) * 2016-12-29 2017-04-26 北京奇艺世纪科技有限公司 Back-to-source node determination method and apparatus
CN106790689A (en) * 2017-02-20 2017-05-31 网宿科技股份有限公司 Nodes recommendations method based on peer-to-peer network, server and client side
CN106790689B (en) * 2017-02-20 2020-08-04 网宿科技股份有限公司 Node recommendation method, server and client based on peer-to-peer network
US11763338B1 (en) * 2017-09-28 2023-09-19 Amazon Technologies, Inc. Attributing conversion events to viewable content impressions using multiple efficacy attributes
CN108206862A (en) * 2017-12-27 2018-06-26 努比亚技术有限公司 The distribution method and diostribution device of Web content point
CN111435946A (en) * 2019-01-15 2020-07-21 阿里巴巴集团控股有限公司 Method, device, terminal equipment and system for downloading resources
CN110266438A (en) * 2019-07-01 2019-09-20 深圳市迅雷网络技术有限公司 A kind of data transmission method, device, system and computer readable storage medium
CN111756577A (en) * 2020-06-23 2020-10-09 中国工商银行股份有限公司 Fault detection method, apparatus, detection device and medium executed by detection device
CN111756577B (en) * 2020-06-23 2022-08-02 中国工商银行股份有限公司 Fault detection method, apparatus, detection device and medium executed by detection device
CN111770188A (en) * 2020-07-03 2020-10-13 珠海西山居移动游戏科技有限公司 BT (bit BT) download node management method and device
CN111934825B (en) * 2020-09-23 2021-03-02 南京金宁汇科技有限公司 Information transmission method based on block chain and storage medium
CN114666324A (en) * 2022-03-28 2022-06-24 重庆紫光华山智安科技有限公司 Download method of monitoring video, server, client and readable storage medium
CN114666324B (en) * 2022-03-28 2024-01-30 重庆紫光华山智安科技有限公司 Downloading method of monitoring video, server, client and readable storage medium
CN116095092A (en) * 2023-04-11 2023-05-09 湖南快乐阳光互动娱乐传媒有限公司 Peer node selection method and device

Similar Documents

Publication Publication Date Title
CN103327121A (en) P2P (Peer-to-Peer Network) network resource transmission method and device for same
CN109918894B (en) Reputation-based trust evaluation method in edge computing network video processing
CN100556129C (en) A kind of equity connects flow medium live system and device
CN100414539C (en) Method for transmitting and downloading streaming data
CN106330997B (en) A kind of method and system of the content distribution for mobile terminal application
CN108810052B (en) Live broadcast server selection method and device
CN103051717A (en) Method, device and equipment for processing http request
JP4840334B2 (en) Terminal apparatus, communication system, program, and method
CN103634623B (en) A kind of method and apparatus for being used to share target video
CN101465824A (en) Multi-source transmission system and method for instant communication file
US9201894B2 (en) Data distribution system
CN107147945B (en) Multimedia resource playing system, method and device
CN101296152A (en) Data scheduling method and system of equity linked network
CN101626389A (en) Network node management method
CN102761609A (en) Data push system and method for server
CN113590576A (en) Database parameter adjusting method and device, storage medium and electronic equipment
CN103327046A (en) P2SP system scheduling method, equipment and system based on node service capacity
CN103826139A (en) CDN system, watching server and streaming media data transmission method
CN110402567A (en) Central caching is based in network centered on information
CN102624884A (en) Method, device and facility for receiving peer-to-peer (P2P) resources
CN101651708A (en) Topological construction method of P2P streaming media network
CN109962947A (en) Method for allocating tasks and device in a kind of peer-to-peer network
CN101588287A (en) Method, device and system for scheduling and downloading peer-to-peer network data
WO2013081513A1 (en) A method and an apparatus in a communication node for identifying receivers of a message
KR100823730B1 (en) Method and apparatus for providing streaming service based on P2P, and streaming service system using the same

Legal Events

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

Application publication date: 20130925

RJ01 Rejection of invention patent application after publication