The present invention relates generally to computing networks and relates more particularly to the expansion of peer-to-peer data transfer networks.
In conventional P2P systems, messages including the search message 105 have a limited time to live or hop count. That is, a message will expire once it has been forwarded to a predefined maximum number of nodes 101, 103 or 111. Thus, if the requesting node 101 generates a search message having a time to live of four, and a node at which the requested data resides (e.g., node 113) is more than four “hops” away from the requesting node 101, the search message will expire before the requested data is obtained. Typical methods for increasing the possibility of the search message reaching a node having the requested data thus include increasing the search message's time to live or increasing the number of peer connections per node; however, either method will cause an increase in network traffic.
Similar methods that may decrease download time include allowing selective downloads (by which a requesting node downloads the same data from multiple responding nodes at different offsets, thereby shortening download time), or to allow a requesting node to partner with one or more other peer nodes currently downloading the requested data. However, these methods do not increase the “view” of a node in the P2P network (e.g., by enabling search requests from the node to reach nodes further into the P2P network), nor do these methods enable the building of P2P communities of users having similar interests, which can increase the likelihood of searches finding desired content in the P2P network.
Thus, there is a need in the art for a method and apparatus for improving data transfers in P2P networks.
One embodiment of the present method and apparatus for improving data transfers in peer-to-peer networks includes receiving a search request message from a requesting node, where the search request message requests specific data. A responding node then sends a response message to the requesting node including a referral message comprising at least one referred node that is expected to have the requested data, based on knowledge of the referred node's previous incoming and outgoing data transfers. The responding node may also indicate that the responding node has the requested data. In addition to increasing the requesting node's view of the peer-to-peer network, this also enables the identification of nodes (e.g., referred nodes) with which the requesting node may wish to establish direct peer-to-peer connections, e.g., to build peer-to-peer communities of nodes having similar interests.
So that the manner in which the above recited embodiments of the invention are attained and can be understood in detail, a more particular description of the invention, briefly summarized above, may be obtained by reference to the embodiments thereof which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures.
In one embodiment, the present invention is a method and apparatus for improving data transfers in P2P networks. Embodiments of the present invention make it possible for a requesting node on a P2P network to receive data from nodes that would normally be outside of the requesting node's “range” by enabling the referral, by intermediate nodes, of the out-of-range nodes. This capability further facilitates the building of “communities” within the P2P network, where a “community” in the context of the present invention is a subset of nodes in a P2P network that share common interests and/or data, e.g., over direct peer connections.
For the purposes of the present invention, the term “node” refers to a computing device such as a personal computing device (e.g., a desk top computer, a laptop computer, a cellular telephone, a personal digital assistant, etc.), a server, a router or the like that is connected to a P2P network.
The method 200 then proceeds to step 206, where the method 200 examines the search request message and determines whether the receiver (e.g., the node at which the search request message was received in step 204) has the requested data. If the receiver has the requested data, the method 200 proceeds to step 208 and sends a response message over the network 100 back to the requesting node, e.g., in accordance with conventional P2P protocols. The response message indicates that the receiver has the requested data.
In one embodiment, the response message sent in step 208 further includes a referral message comprising at least one referred node, where a “referred node” is another node in the P2P network that has previously retrieved the requested data. In one embodiment, the referral message is included in the response message. In another embodiment, the referral message is a separate message sent to the requesting node. In yet another embodiment, the referral message is piggybacked on the response message. In one embodiment, the referred nodes are nodes that have retrieved the requested data directly from the receiver. The referral message may include, for example, at least one of the hostnames, IP addresses, virtual names and other identifiers of the referred nodes.
In one embodiment, the referral message may be time-sensitive such that it includes only nodes that have retrieved the requested content within a predefined maximum timeframe (e.g., within the last 24 hours, etc.). This predefined maximum timeframe may be specified in the search request message (e.g., “refer only nodes that have requested the data within the past 24 hours”), or the predefined maximum timeframe may be specified at the receiver. The assumption is that if a referred node has recently (e.g., within the predefined maximum timeframe) retrieved the requested data, the referred node will likely still have the requested data available to share.
In yet another embodiment, the referral message may be sorted or ranked based on at least one of: uptime for the referred nodes, bandwidth of the referred nodes and latency of the referred nodes.
In one embodiment, the method 200 sends a referral message based on a threshold distance that the search request message has traveled in the network. For example, in one embodiment, the method 200 only sends a referral message if the search request message's time to live has expired (e.g., the receiver is an edge node in the requesting node's view of the P2P network). In another embodiment, the method 200 only sends a referral message if the search request message's time to live is at least half expired. This threshold distance may be specified by the requesting node, the receiver, or both.
Alternatively, if the method 200 determines in step 206 that the receiver does not have the requested data, the method 200 proceeds to step 210 and inquires whether the receiver knows of another node that is likely to have the requested data (e.g., because the node has previously downloaded the requested data from another source as discussed above). If the receiver does know of another node that is likely to have the requested data, the method 200 proceeds to step 208 as described above but sends only a referral message, and not a response message. Thus, even if the receiver does not have the requested data, the receiver may still be able to refer the requesting node to one or more other nodes that are likely to have the requested data.
However, if the receiver does not have the requested data and does not know of another node that is likely to have the requested data, the method 200 proceeds to step 212 and either forwards the search request message to the next node (e.g., in accordance with conventional P2P protocols) or discards the search request message (e.g., if the search message's time to live or hop count has expired).
The method 200 terminates in step 214. Based on the requesting node's evaluation of the response message, including the referral message, the receiver may be contacted by the requesting node for at least a portion of the requested data (if the method 200 has indicated that the receiver has the data).
The method 200 as described above enables the view of a node in a P2P network to be expanded while only minimally increasing network traffic. By enabling one or more nodes in a P2P network to “refer” out-of-range nodes to a requesting node, the view of the requesting node can be expanded despite the requesting node's inherently limited range. The farther away a receiver/responding node is in hops from the requesting node, the smaller the intersection is between the requesting node and the receiver/responding node, and the larger the expanded view of the P2P is likely to therefore be. Thus, unlike conventional P2P expansion methods that tend to result in a sometimes exponential increase in network traffic (e.g., by increasing either a search request message's time to live or a node's number of peer connections), the method 200 actually conserves traffic while at the same time “expanding” the network. In addition, response latency is typically reduced as a requesting node can select faster nodes which can provide more data than nodes on slower links.
Those skilled in the art will appreciate that a node may periodically update its referral message, for example based on one or more test searches. For example, a node may send a test search message to one or more nodes identified in its referral message, in order to determine that the nodes identified in the referral message still have the indicated data. If a node identified in the referral message no longer has the indicated data, it can be removed from the referral message. Test searches may be performed periodically, e.g., based on an expiration of a predefined period of time. In yet another embodiment, a node may remove a referred node from the referral message if the node receives a message from a requesting node (to which the referred node has been referred) indicating that the referred node no longer has the indicated data.
Moreover, by referring nodes that have or are likely to have the requested data, the method 200 facilitates the building of “communities” within the P2P by identifying out-of-range nodes with potentially similar interests (e.g., as inferred by the request for the same data). The existence of communities allows nodes with similar interests to directly communicate and exchange data, thereby reducing overall network traffic (as search request messages sent through the community tend not to propagate as far into the P2P network as is typical with a normal search as described in connection with
In step 306, the method 300 receives at least one response message responsive to the search request message sent in step 304. The response message includes at least one referred node, e.g., as described with reference to the method 200. In one embodiment, the response message may also include an indication that the responding node has the requested data, e.g., in accordance with traditional P2P protocols. The method 300 may collate multiple response messages received from multiple responding nodes to create an aggregate list of potential sources for the requested data.
Once the method 300 has received the response message, the method 300 proceeds to step 308 and retrieves at least a portion of the requested data from at least one of the responding node and/or at least one referred node listed in the referral message. In one embodiment, the method 300 may choose which portions of the requested data to retrieve from which responding and/or referred nodes, based on a collated list of potential sources for the requested data. In another embodiment, the requesting node may identify one or more preferred nodes for searching, based on the information received in step 306.
In step 310, the method 300 creates a direct peer connection to at least one of the referred nodes, e.g., to admit the referred node into or to create a “community” or subset of nodes in the P2P network that share common interests and/or data. In one embodiment, the referred node is a mutually preferred node (e.g., preferred for searching). In one embodiment, step 310 further includes terminating an existing peer connection for every new peer connection that is created (e.g., to conserve network resources where each node in the P2P network is allowed a maximum number of peer connections). Thus, for example, referring back to
The method 300 is terminated in step 312.
Alternatively, the data transfer module 405 can be represented by one or more software applications (or even a combination of software and hardware, e.g., using Application Specific Integrated Circuits (ASIC)), where the software is loaded from a storage medium (e.g., I/O devices 406) and operated by the processor 402 in the memory 404 of the general purpose computing device 400. Thus, in one embodiment, the data transfer module 405 for expanding a P2P network and building P2P communities described herein with reference to the preceding Figures can be stored on a computer readable medium or carrier (e.g., RAM, magnetic or optical drive or diskette, and the like).
Thus, the present invention represents a significant advancement in the field of data transfer networks. A method and apparatus are provided that make it possible for a requesting node on a P2P network to receive data from nodes that would normally be outside of the requesting node's “range” by enabling the referral, by intermediate nodes, of the out-of-range nodes. This capability further facilitates the building of “communities” within the P2P network, enabling faster, more efficient data transfers and reducing network traffic.
While foregoing is directed to the preferred embodiment of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.
This application is a continuation of U.S. patent application Ser. No. 12/163,490, now U.S. Pat. No. 7,958,195, filed Jun. 27, 2008, which is in turn a continuation of U.S. patent application Ser. No. 11/140,122, filed May 27, 2005 (now abandoned). Both of these applications are herein incorporated by reference in their entireties.
Number | Name | Date | Kind |
---|---|---|---|
4807224 | Naron et al. | Feb 1989 | A |
7958195 | Beigi et al. | Jun 2011 | B2 |
20030050966 | Dutta et al. | Mar 2003 | A1 |
20030191800 | Challenger et al. | Oct 2003 | A1 |
20040054807 | Harvey et al. | Mar 2004 | A1 |
20050021617 | Rusitschka | Jan 2005 | A1 |
20050174972 | Boynton | Aug 2005 | A1 |
20060039371 | Castro et al. | Feb 2006 | A1 |
20060271638 | Beigi et al. | Nov 2006 | A1 |
20080263166 | Beigi et al. | Oct 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20110208823 A1 | Aug 2011 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12163490 | Jun 2008 | US |
Child | 13099919 | US | |
Parent | 11140122 | May 2005 | US |
Child | 12163490 | US |