The present invention relates generally to peer name resolution protocol and more particularly to a lightweight peer name resolution protocol for reducing the amount of traffic received by a peer in order to conserve resources.
Group communication technologies on the Internet allow users with common interest to collaborate, share files, chat with one another, multicast audio and video for presentations and group meetings, and engage in multi-player gaming. Indeed, the ability for group formation in an ad hoc basis presents significant advantages in allowing users with common interests to gather in a virtual area or group that may be segregated from the general Internet population. The segregation facilitates useful discussion in collaboration among such like-minded individuals. Currently, however, most group communication and formation takes place in a server-centric environment wherein all communication flows to or through large central servers.
With the emergence of peer-to-peer (P2P) technology, the current server-centric model of Internet communication is quickly being replaced. P2P technologies enable users to contact one another in a serverless environment, free from the constraints of server-based Internet communication. As with a server-centric environment, users form ad hoc groups for collaborating, sharing files, chatting, and gaming with one another. These groups, often referred to as clouds in the context of P2P networking, facilitate fast dissemination of common information throughout a distributed network of peers. However, unlike the server-centric environment, the P2P environment avoids bottlenecking and is more resilient to partial network disconnects.
A peer name resolution protocol, such as that described in commonly assigned U.S. patent application Ser. No. ______, is used by peers to resolve the address of other peers in a P2P cloud. Conventionally, peer name resolution protocols are “chatty,” in that there is a constant pinging of neighbor peers to maintain and update cache entries of peer addresses. As implemented, conventional peer name resolution protocols do not consider bandwidth or CPU usage. However, mobile devices, such as PDAs and cellular phones, may wish to participate in P2P clouds, but do not have the bandwidth or computational resources to keep up with the typical stream of P2P message traffic. Accordingly, there is a need in the art to allow such lightweight devices to participate in P2P clouds while conserving resources.
In view of the foregoing, the present invention provides a system, method, and computer product for a lightweight node to participate in a peer network through a proxy, wherein the peer network includes a plurality of nodes, each node having a peer identifier (ID) and a cache of peer IDs for one or more known nodes. The method comprises acquiring the peer ID of a proxy node in the peer network; requesting the proxy node to act as a proxy; sending a message to at least one node in the peer network through the proxy node; and receiving a response from the at least one node in the peer network through the proxy node, wherein the at least one node in the peer network is unaware of a network address for the host node.
Another embodiment of the invention provides a method for a proxy node to act as a proxy for a lightweight node in a peer network, wherein the peer network includes a plurality of nodes, each node having a peer identifier (ID) and a cache of peer IDs for one or more known nodes. That method includes receiving a request to act as a proxy, acknowledging the request, and registering a peer ID for the lightweight node, the peer ID having associated therewith a network address of the proxy node. The method may further comprise receiving a message from the lightweight node addressed to a target node, and forwarding the message to the target node, wherein a return path for the message includes the peer ID of the lightweight node and the network address of the proxy node. The method may still further include receiving a message from a node in the peer network that is intended for the lightweight node and forwarding the message to the lightweight node, wherein the message is intended for the peer ID of the lightweight node and the network address of the proxy node.
Yet another embodiment of the invention provides method for detecting a dead proxy node, wherein the proxy node acts as a proxy for a lightweight node in a peer network, the peer network including a plurality of nodes, each node having a peer identifier (ID) and a cache of peer IDs for one or more known nodes. That method comprise sending a message intended for the lightweight node to the proxy, waiting for a predetermined period of time for a reply, and sending a message directly to the lightweight node notifying the lightweight node that the proxy node is not functioning as a proxy.
Additional features and advantages of the invention are made apparent from the following detailed description of illustrative embodiments which proceeds with reference to the accompanying figures.
The accompanying drawings incorporated in and forming a part of the specification illustrate several aspects of the present invention, and together with the description serve to explain the principles of the invention. In the drawings:
While the invention will be described in connection with certain preferred embodiments, there is no intent to limit it to those embodiments. On the contrary, the intent is to cover all alternatives, modifications, and equivalents as included within the spirit and scope of the invention as defined by the appended claims.
Turning to the drawings, wherein like reference numerals refer to like elements, the present invention is illustrated as being implemented in a suitable computing environment. The following description is based on embodiments of the invention and should not be taken as limiting the invention with regard to alternative embodiments that are not explicitly described herein.
An example of a networked environment in which the invention may be used will now be described with reference to
The invention is operational with numerous other general-purpose or special-purpose computing system environments or configurations. Examples of well known computing systems, environments, and configurations that may be suitable for use with the invention include, but are not limited to, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer-storage media including memory-storage devices.
With reference to
The computer 110 typically includes a variety of computer-readable media. Computer-readable media can be any available media that can be accessed by the computer 110 and include both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer-readable media may include computer storage media and communication media. Computer storage media include both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for the storage of information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer 110. Communication media typically embody computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism and include any information-delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media include wired media such as a wired network or direct-wired connection and wireless media such as acoustic, RF, infrared, and other wireless media. Combinations of the any of the above should also be included within the scope of computer-readable media.
The system memory 130 includes computer storage media in the form of volatile and nonvolatile memory such as read only memory (ROM) 131 and random access memory (RAM) 132. A basic input/output system 133 (BIOS), containing the basic routines that help to transfer information between elements within the computer 110, such as during start-up, is typically stored in ROM 131. RAM 132 typically contains data and program modules that are immediately accessible to or presently being operated on by the processing unit 120. By way of example, and not limitation,
The computer 110 may also include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only,
The drives and their associated computer storage media discussed above and illustrated in
A user may enter commands and information into the computer 110 through input devices such as a keyboard 162 and a pointing device 161, commonly referred to as a mouse, trackball, or touch pad. Other input devices (not shown) may include a microphone, joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit 120 through a user input interface 160 that is coupled to the system bus 121, but may be connected by other interface and bus structures, such as a parallel port, game port, or a universal serial bus. A monitor 191 or other type of display device is also connected to the system bus 121 via an interface, such as a video interface 190. In addition to the monitor 191, the computer 110 may also include other peripheral output devices such as speakers 197 and a printer 196 which may be connected through an output peripheral interface 195.
The computer 110 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 180. The remote computer 180 may be another personal computer, a server, a router, a network PC, a peer device, or other common network node and typically includes many or all of the elements described above relative to the personal computer 110 although only a memory storage device 181 has been illustrated in
When used in a LAN networking environment, the personal computer 110 is connected to the LAN 171 through a network interface or adapter 170. When used in a WAN networking environment, the computer 110 typically includes a modem 172 or other means for establishing communications over the WAN 173, such as the Internet. The modem 172, which may be internal or external, may be connected to the system bus 121 via the user input interface 160 or other appropriate mechanism. In a networked environment, program modules depicted relative to the personal computer 110, or portions thereof, may be stored in the remote memory storage device 181. By way of example, and not limitation,
In the description that follows, the present invention is described with reference to acts and symbolic representations of operations that are performed by one or more computing devices, unless indicated otherwise. As such, it will be understood that such acts and operations, which are at times referred to as being computer-executed, include the manipulation by the processing unit of the computing device of electrical signals representing data in a structured form. This manipulation transforms the data or maintains them at locations in the memory system of the computing device, which reconfigures or otherwise alters the operation of the device in a manner well understood by those skilled in the art. The data structures where data are maintained are physical locations of the memory that have particular properties defined by the format of the data. However, while the invention is being described in the foregoing context, it is not meant to be limiting as those of skill in the art will appreciate that various of the acts and operations described hereinafter may also be implemented in hardware.
The present invention provides a system, method, and computer product for extending Peer-to-Peer Name Resolution Protocol to allow a lightweight node to interact in a peer-to-peer cloud through a proxy node, thereby conserving bandwidth and computational resources of the lightweight node. Throughout this specification, reference will be made to the PNRP before the invention as the “original PNRP,” while reference to the extended PNRP of the applicants' invention will be referred to as proxy-enabled PNRP.
In the various embodiments of the invention described below, normal PNRP node actively participates to the cloud by originating or forwarding of various messages. The traffic can be categorized as related to local registrations/resolutions, related to registrations/resolutions on behalf of others, and cache maintenance. These operations are vital to maintaining the consistency and dependability of the PNRP cloud, and thus cannot be abandoned. However, a lightweight node may have a network connection with limited bandwidth. The amount of traffic PNRP uses could overwhelm this limited network connection. In the case of a mobile computing device, the processing of PNRP messages could deplete the battery. Moreover, users usually pay by traffic, so paying for other node's resolutions will not be acceptable to them. Accordingly, in the various embodiments described below, a lightweight node finds a normal node (a proxy node) to perform these PNRP maintenance operations on its behalf.
A lightweight node cache, instead of the cache maintained in a normal node, maintains a lightweight cache in which no “local machine CPA” is created. Locally originated resolutions are sent with an empty “best match CPA”. Furthermore, registrations are done through proxy nodes, which are normal nodes that are compliant with proxy-enabled PNRP. The proxy nodes will take the traffic hit. Moreover, no regular cache maintenance is performed by the proxied device; however the proxy host will still be responsible for its own regular cache maintenance. In one embodiment of the invention, a persisted cache of available proxies is maintained. The lightweight nodes operate in this “lightweight mode” by default, though normal nodes may still use this mode for traversing firewalls. Any node running proxy-enabled PNRP will support “remote registrations.” Seed servers attempt to maintain a list of proxy-enabled PNRP nodes.
To allow a lightweight node to find a proxy-enabled PNRP node, a new “solicit controls” field is added to the PNRP SOLICIT message so the solicitor can specify what type of node IDs it wants the target to send back in the PNRP ADVERTISE message. One of these node types is “PNRP Proxy capable node.” Seed servers track the “PNRP Proxy node” capability and are able to send back IDs that match this criterion. In another embodiment of the invention, a preferred proxy may be hardcoded by storing the node ID of the proxy-node in a persisted memory, such as a registry key. In yet another embodiment of the invention, if the lightweight node is unable to find a proxy node to use to enter the cloud, proxy-enabled PNRP may provide a PNRP RESOLVE message with a special RF_* flag that is to be sent to a node in the cloud. The first node in the path supporting proxy-enabled PNRP will send back a PNRP RESPONSE message with including its node ID. In yet another embodiment of the invention, a list of proxy nodes is maintained PNRP nodes in the shared top level cache, so that a persisted cache can also be used when booting the lightweight node.
Service Address: The list of PNRP service addresses received from the proxy node
Location: Service location derived from one of the addresses received from the proxy node
Payload 1: Addresses registered by the application
Payload 2: lightweight node service address
This way the service addresses in the CPA point to the proxy node, but the public key/signature are owned by the lightweight node.
The lightweight node then sends a PUBLISH message to the proxy node. The PUBLISH message fields include the CPA and an encrypted nonce that is a nonce received from proxy and encrypted with the identity private key. At step 440, the proxy nodes creates a view, sends the registration RESOLVE and FLOOD messages, then sends an ACK back to the lightweight node. At step 450, the lightweight node receives the ACK. If the proxy node does not have available slots for remote registrations, it may specify this fact in the PROXY_RESPONSE reply. The lightweight node will have to find another proxy and try again. Errors may also be returned through the final ACK by setting the NACK flag. The lightweight node will have to find another proxy and try again.
The proxy node may request certificate chain from a lightweight node using a regular INQUIRE/AUTHORITY transaction. The lightweight node is responsible for renewing the CPA. If the CPA expires on the proxy node and the lightweight node does not renew it, the proxy node will discard it. Renewal CPAs are registered using the same mechanism as for first time registration. Unregistration is similar to renewal, but the lightweight node sends a “revoke CPA” message instead of a regular message.
Lightweight nodes may maintain a list of proxies in their top level cache. The list changes in time (proxies may come and go, or some of them may become unavailable for new registrations). The entries in the list are obtained through:
Bootstrapping (an initial list of proxies is returned by the lightweight bootstrap process)
Maintenance (regular PROXY_REQUEST messages are sent to the proxies in the list)
Learning—Neighbors of a proxy (in the ID space) can detect the proxy has died and may try to offer their proxy services to the lightweight node.
This helps reducing the frequency of polling needed to maintain the proxy list.
If some addresses on the proxy node change and they affect CPAs registered on behalf of a lightweight node, the lightweight node is notified so it can renew the affected CPAs. The proxy node sends a PROXY_NOTIFY to the lightweight node with a list of the invalidated IDs. The lightweight node acknowledges the message by replying with an ACK. The lightweight node then initiates renewal of CPAs on the proxy node. If the list of addresses returned by the proxy node is not different, the PROXY_NOTIFY was unwarranted and renewal stops.
The foregoing description of various embodiments of the invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Numerous modifications or variations are possible in light of the above teachings. The embodiments discussed were chosen and described to provide the best illustration of the principles of the invention and its practical application to thereby enable one of ordinary skill in the art to utilize the invention in various embodiments and with various modifications as are suited to the particular use contemplated. All such modifications and variations are within the scope of the invention as determined by the appended claims when interpreted in accordance with the breadth to which they are fairly, legally, and equitably entitled.