CROSS-REFERENCE TO RELATED APPLICATIONS
Not applicable.
BACKGROUND OF THE INVENTION 1. The Field of the Invention
The present invention relates to accessing resources and, more particularly, to rendezvousing resource requests with corresponding resources.
2. Background and Relevant Art
Computer systems and related technology affect many aspects of society. Indeed, the computer system's ability to process information has transformed the way we live and work. Computer systems now commonly perform a host of tasks (e.g., word processing, scheduling, and database management) that prior to the advent of the computer system were performed manually. More recently, computer systems have been coupled to one another and to other electronic devices to form both wired and wireless computer networks over which the computer systems and other electronic devices can transfer electronic data. As a result, many tasks performed at a computer system (e.g., voice communication, accessing electronic mail, controlling home electronics, Web browsing, and printing documents) include electronic communication between a number of computer systems and/or other electronic devices via wired and/or wireless computer networks.
However, to utilize a network resource to perform a computerized task, a computer system must have some way to identify and access the network resource. Accordingly, resources are typically assigned unique identifiers, for example, network addresses, that uniquely identify resources and can be used to distinguish one resource from other resources. Thus, a computer system that desires to utilize a resource can connect to the resource using the network address that corresponds to the resource. However, accessing a network resource can be difficult if a computer system has no prior knowledge of a network address for a network resource. For example, a computer system can not print a document at a network printer unless the computer system (or another networked computer system) knows the network address of the network printer.
Accordingly, various mechanisms (e.g., Domain Name System (“DNS”), Active Directory (“AD”), Distributed File Systems (“DFS”)) have been developed for computer systems to identify (and access) previous unknown resources. However, due to the quantity and diversity of resources (e.g., devices and services) that are accessible via different computer networks, developers are often required to develop applications that implement a variety of different resource identification and access mechanisms. Each different mechanism may have different coding requirements and may not provide a developer with all the functionality that is needed in an application.
For example, although DNS has a distributed administration architecture (i.e., centralized management is not required), DNS is not sufficiently dynamic, not self-organizing, supports a weak data and query model, and has a fixed set of roots. On the other hand, AD is sufficiently dynamic but requires centralized administration. Further, aspects of different mechanisms may not be compatible with one another. For example, a resource identified using DNS may not be compatible with DFS routing protocols. Thus, a developer may be forced to choose the most suitable mechanism and forgo the advantages of other mechanisms.
Mechanisms for identifying resources can be particularly problematic in peer-to-peer networks. DNS provides a lookup service, with host names as keys and IP addresses as values, that relies on a set of special root servers to implement lookup requests. Further, DNS requires management of information (NS records) for allowing clients to navigate the name server hierarchy. Thus, a resource must be entered into DNS before the resource can be identified on a network. On larger scale networks where nodes frequently connect and disconnect form the network relying on entry of information is not always practical. Additionally, DNS is specialized to the task of find hosts or services and is not generally applicable to other types of resources.
Accordingly, other mechanisms for resource identification and access have been developed to attempt to address these shortcomings. A number of mechanisms include distributed lookup protocols that are more scalable than DNS. These mechanisms use various node arrangements and routing algorithms to route requests to corresponding resources and to store information for lookup.
At least one of these mechanisms utilizes local multi-level neighbor maps at each node in a network to route messages to a destination node. This essentially results in an architecture where each node is a “root node” of a corresponding tree of nodes (the nodes in its neighbor map). Messages are incrementally routed to a destination ID digit by digit (e.g., ***6=>**46=>, *346=>2346, where *s represent wildcards). The routing efficiency of these types of mechanisms is O(log N) routing hops and require nodes to maintain a routing table of O(log N) size.
At least one other of these mechanisms assigns nodes a unique ID that is taken from a linear ring of numbers. Nodes maintain routing tables that contain pointers to their immediate successor node (according to ID value) and to those nodes whose ID values are the closest successor of the value ID+2L. The routing efficiency of these types of mechanisms is also O(log N) routing hops and require nodes to maintain a routing table of O(log N) size.
At least one further mechanisms requires O(log N1/d) routing hops and requires nodes to maintain a routing table of O(D) size. Thus, the routing efficiency of all of these mechanisms depends, at least in part, on the number of nodes in the system.
Further, since IDs (for at least some of the mechanisms) can be uniformly distributed around a ring, there is always some possibility that routing between nodes on the ring will result in some inefficiency. For example, routing hops can cross vast geographic distances, cross more expensive links, or pass through insecure domains, etc. Additionally, when message routing involves multiple hops, there is some chance that such events will occur multiple times. Unfortunately, these mechanisms do not take into account the proximity of nodes (physical or otherwise) with respect one another. For example, depending on node distribution on a ring, routing a message from New York to Boston could involve routing the message from New York, to London, to Atlanta, to Tokyo, and then to Boston.
Accordingly, at least one other more recent mechanism takes proximity into account by defining proximity as a single scalar proximity metric (e.g., IP routing hops or geographic distance). These mechanisms use the notion of proximity-based choice of routing table entries. Since there are many “correct” node candidates for each routing table entry, these mechanisms attempt to select a proximally close node from among the candidate nodes. For these mechanisms can provide a function that allows each node to determine the “distance” of a node with a given IP address to itself. Messages are routed between nodes in closer proximity to make progress towards a destination before routing to a node that is further away. Thus, some resources can be conserved and routing is more efficient.
Unfortunately, these existing mechanisms typically do not provide for, among other things, symmetric relationships between nodes (i.e., if a first node considers a second node to be its partner, the second node considers the first node as a partner as well), routing messages in both directions (clockwise and counterclockwise) on a ring, partitioning linked lists of nodes based on a plurality of proximity metrics, and routing messages based on a plurality of proximity metrics proximity. Therefore systems, methods, computer program products that utilize these mechanisms to rendezvous resource requests with a corresponding resource would be advantageous.
BRIEF SUMMARY OF THE INVENTION The foregoing problems with the prior state of the art are overcome by the principles of the present invention, which are directed towards methods, systems, and computer program products for rendezvousing resource requests with corresponding resources. In some embodiments, the nodes of a federation infrastructure are partitioned. A sorted linked list containing node IDs that have been assigned to nodes in the federation infrastructure is accessed. Proximity categories that represent a plurality of different proximity criterion for partitioning the sorted link list are accessed. The sorted linked list is partitioned into one or more first sub lists based on a first proximity criterion, each of the one or more first sub lists containing at least a subset of the node IDs from the sorted linked list. A first sub list, selected from among the one or more first sub lists, is partitioned in to one or more second sub lists based on a second proximity criterion, each of the one or more second sub lists containing at least a subset of node IDs contained in the first sub list.
In other embodiments, for example as depicted inFIG. 3, a node routing table is populated. An immediate predecessor node is inserted into the routing table. An immediate successor node is inserted into the routing table. Appropriate neighborhood node identifiers are inserted into the routing table, the neighborhood nodes identified from the sorted linked list in both the first direction and in a second opposite direction based on a predetermined or estimated neighborhood range and neighborhood size. Appropriate routing nodes identifiers are inserted into the routing table, the routing nodes identified from the sorted linked list in both the first and second directions based on the number base and field size of the ID space for the federation infrastructure, the routing nodes representing a logarithmic index of the sorted link list in both the first and second directions.
In yet other embodiments, a node routing table can be populated taking proximity criteria in to account. A predecessor node for each hierarchically partitioned routing ring the current node participates in is inserted into a routing table, each hierarchically partitioned routing ring being partitioned in accordance with corresponding proximity criteria and containing at least subsets of the bi-directional linked list of a parent ring. A successor node for each hierarchically partitioned routing ring the current node participates is inserted into the routing table. Appropriate neighborhood nodes for each hierarchically partitioned routing ring the current node participates in are inserted into the routing table. Appropriate routing nodes for each hierarchically partitioned routing ring the current node participates in are inserted into the routing table.
In further other embodiments, a message is routed, potentially based on one or more proximity criteria defining a corresponding one or more classes of nodes, towards a destination node. A receiving node receives a message along with a destination number indicating a destination node and optionally one or more proximity criteria. The receiving node, potentially among nodes in a current class of nodes, determines it is at least one of numerically further from the destination number than a corresponding predecessor node and numerically further from the destination number than a corresponding successor node. It is determined that the destination is not in a neighborhood set of nodes, potentially among nodes in the current class of nodes, corresponding to the receiving node.
An intermediate node from a routing table corresponding to the receiving node is identified, the intermediate node being numerically closer to the destination number than other routing nodes in the corresponding routing table. The message is sent to the intermediate node. The intermediate node can continue routing the message. The message eventually reaches the destination node when a node that receives the message is numerically closer to the destination number than either its successor or predecessor nodes. In embodiments that route based on one or more proximity criteria, this numerical closeness may be with respect to nodes in a selected class of nodes.
Thus, routing a message based on proximity criteria includes routing to a destination node (ID) by progressively moving closer to the destination node within a given proximal ring (class of nodes) until no further progress can be made by routing within that ring. Determining that no further progress can be made occurs when the destination number lies between the current node's ID and its successor or predecessor nodes' IDs. At this point, the current node starts routing via its partner nodes in the next larger proximal ring in which it participates. This process of progressively moving towards the destination node by climbing along the partitioning path towards the root ring terminates when the destination node is reached.
These and other objects and features of the present invention will become more fully apparent from the following description and appended claims, or may be learned by the practice of the invention as set forth hereinafter.
BRIEF DESCRIPTION OF THE DRAWINGS To further clarify the above and other advantages and features of the present invention, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. It is appreciated that these drawings depict only typical embodiments of the invention and are therefore not to be considered limiting of its scope. The invention will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:
FIG. 1 illustrates an example of a federation infrastructure.
FIG. 2 illustrates an example of a computer architecture that facilitates routing request indirectly to partners.
FIG. 3 illustrates an example binary relationship between nodes in a federation infrastructure in the form of a sorted list and corresponding ring.
FIG. 4 illustrates an example ring of rings that facilitates proximal routing.
FIG. 5 illustrates an example proximity induced partition tree of rings that facilitates proximal routing.
FIG. 6 illustrates a suitable operating environment for the principles of the present invention.
FIG. 7 illustrates an example flow chart of a method for populating a node routing table that takes proximity criteria into account
FIG. 8 illustrates an example flow chart of a method for partitioning the nodes of a federation infrastructure.
FIG. 9 illustrates an example flow chart of a method for populating a node routing table.
FIG. 10 illustrates an example flow chart of a method for numerically routing a message towards a destination node.
FIG. 11 illustrates an example flow chart of a method for proximally routing a message towards a destination node.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The foregoing problems with the prior state of the art are overcome by the principles of the present invention, which are directed towards methods, systems, and computer program products for rendezvousing resource requests with corresponding resources. In some embodiments, the nodes of a federation infrastructure are partitioned. A sorted linked list containing node IDs that have been assigned to nodes in the federation infrastructure is accessed. Proximity categories that represent a plurality of different proximity criterion for partitioning the sorted link list are accessed. The sorted linked list is partitioned into one or more first sub lists based on a first proximity criterion, each of the one or more first sub lists containing at least a subset of the node IDs from the sorted linked list. A first sub list, selected from among the one or more first sub lists, is partitioned in to one or more second sub lists based on a second proximity criterion, each of the one or more second sub lists containing at least a subset of node IDs contained in the first sub list.
In other embodiments, for example as depicted inFIG. 3, a node routing table is populated. An immediate predecessor node is inserted into the routing table. An immediate successor node is inserted into the routing table. Appropriate neighborhood node identifiers are inserted into the routing table, the neighborhood nodes identified from the sorted linked list in both the first direction and in a second opposite direction based on a predetermined or estimated neighborhood range and neighborhood size. Appropriate routing nodes identifiers are inserted into the routing table, the routing nodes identified from the sorted linked list in both the first and second directions based on the number base and field size of the ID space for the federation infrastructure, the routing nodes representing a logarithmic index of the sorted link list in both the first and second directions.
In yet other embodiments, a node routing table can be populated taking proximity criteria in to account. A predecessor node for each hierarchically partitioned routing ring the current node participates in is inserted into a routing table, each hierarchically partitioned routing ring being partitioned in accordance with corresponding proximity criteria and containing at least subsets of the bi-directional linked list of a parent ring. A successor node for each hierarchically partitioned routing ring the current node participates is inserted into the routing table. Appropriate neighborhood nodes for each hierarchically partitioned routing ring the current node participates in are inserted into the routing table. Appropriate routing nodes for each hierarchically partitioned routing ring the current node participates in are inserted into the routing table.
In further other embodiments, a message is routed, potentially based on one or more proximity criteria defining a corresponding one or more classes of nodes, towards a destination node. A receiving node receives a message along with a destination number indicating a destination node and optionally one or more proximity criteria. The receiving node, potentially among nodes in a current class of nodes, determines it is numerically further from the destination number than a corresponding predecessor node and numerically further from the destination number than a corresponding successor node. It is determined that the destination is not in a neighborhood set of nodes, potentially among nodes in the current class of nodes, corresponding to the receiving node.
An intermediate node from a routing table corresponding to the receiving node is identified, the intermediate node being numerically closer to the destination number than other routing nodes in the corresponding routing table. The message is sent to the intermediate node. The intermediate node can continue routing the message. The message eventually reaches the destination node when a node that receives the message is numerically closer to the destination number than either its successor or predecessor nodes. In embodiments that route based on one or more proximity criteria this numerical closeness may be with respect to nodes in a selected class of nodes.
Thus, routing a message based on proximity criteria includes routing to a destination node (ID) by progressively moving closer to the destination node within a given proximal ring (class of nodes) until no further progress can be made by routing within that ring. Determining that no further progress can be made occurs when the destination number lies between the current node's ID and its successor or predecessor nodes' IDs. At this point, the current node starts routing via its partner nodes in the next larger proximal ring in which it participates. This process of progressively moving towards the destination node by climbing along the partitioning path towards the root ring terminates when the destination node is reached.
Embodiments within the scope of the present invention include computer-readable media for carrying or having computer-executable instructions or data structures stored thereon. Such computer-readable media may be any available media, which is accessible by a general-purpose or special-purpose computer system. By way of example, and not limitation, such computer-readable media can comprise physical storage media such as RAM, ROM, EPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other media which can be used to carry or store desired program code means in the form of computer-executable instructions, computer-readable instructions, or data structures and which may be accessed by a general-purpose or special-purpose computer system.
In this description and in the following claims, a “network” is defined as one or more data links (of possibly different speeds) that enable the transport of electronic data between computer systems and/or modules (e.g., hardware and/or software modules). When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or a combination of hardwired or wireless) to a computer system, the connection is properly viewed as a computer-readable medium. Thus, any such connection is properly termed a computer-readable medium. Combinations of the above should also be included within the scope of computer-readable media. Computer-executable instructions comprise, for example, instructions and data which cause a general-purpose computer system or special-purpose computer system to perform a certain function or group of functions. The computer executable instructions may be, for example, binaries, intermediate format instructions such as assembly language, or even source code. In some embodiments, hardware modules, such as, for example, special purpose integrated circuits or Gate-arrays are optimized to implement the principles of the present invention.
In this description and in the following claims, a “node” is defined as one or more software modules, one or more hardware modules, or combinations thereof, that work together to perform operations on electronic data. For example, the definition of a node includes the hardware components of a personal computer, as well as software modules, such as the operating system of the personal computer. The physical layout of the modules is not important. A node can include one or more computers coupled via a network. Likewise, a node can include a single physical device (such as a mobile phone or Personal Digital Assistant “PDA”) where internal modules (such as a memory and processor) work together to perform operations on electronic data. Further, a node can include special purpose hardware, such as, for example, a router that includes special purpose integrated circuits.
Those skilled in the art will appreciate that the invention may be practiced in network computing environments with many types of node configurations, including, personal computers, laptop computers, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile telephones, PDAs, pagers, routers, gateways, brokers, proxies, firewalls, redirectors, network address translators, and the like. The invention may also be practiced in distributed system environments where local and remote nodes, which are linked (either by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links) through a network, both perform tasks. In a distributed system environment, program modules may be located in both local and remote memory storage devices.
Federation Architecture
FIG. 1 illustrates an example of afederation infrastructure100. Thefederation infrastructure100 includesnodes101,102,103, that can form different types of federating partnerships. For example,nodes101,102,103 can be federated among one another as peers without a root node. Each ofnodes101,102, and103 has acorresponding ID171,182, and193 respectively.
Generally, thenodes101,102,103, can utilize federation protocols to form partnerships and exchange information (e.g., state information related to interactions with other nodes). The formation of partnerships and exchange of information facilitates more efficient and reliable access to resources. Other intermediary nodes (not shown) can exist betweennodes101,102, and103 (e.g., nodes having IDs between171 and193). Thus, a message routed, for example, betweennode101 andnode103, can be pass through one or more of the other intermediary nodes.
Nodes in federation infrastructure100 (including other intermediary nodes) can include corresponding rendezvous protocol stacks. For example,nodes101,102, and103 include corresponding rendezvous protocol stacks141,142, and143 respectively. Each of the protocols stacks141,142, and143 includes an application layer (e.g., application layers121,122, and123) and other lower layers (e.g., corresponding otherlower layers131,132, and133). Each layer in a rendezvous protocol stack is responsible for different functionality related to rendezvousing a resource request with a corresponding resource.
For example, other lower layers can include a channel layer, a routing layer, and a function layer. Generally, a channel layer is responsible for reliably transporting a message (e.g., using WS-ReliableMessaging and Simple Object Access Protocol (“SOAP”)) from one endpoint to another (e.g., fromnode101 to node103). The channel layer is also responsible for processing incoming and outgoing reliable messaging headers and maintaining state related to reliable messaging sessions.
Generally, a routing layer is responsible for computing the next hop towards a destination. The routing layer is also responsible for processing incoming and outgoing addressing and routing message headers and maintaining routing state. Generally, a function layer is responsible for issuing and processing rendezvous protocol messages such as join and depart requests, pings, updates, and other messages, as well as generation of responses to these messages. The function layer processes request messages from the routing layer and sends back corresponding response messages, if any, to the originating node using the routing layer. The function layer also initiates request messages and utilizes the routing layer to have the requests messages delivered.
Generally, an application layer processes non-rendezvous protocol specific data delivered from the function layer (i.e., application messages). The function layer can access application data from the application layer and get and put application data in rendezvous protocol messages (e.g., pings and updates). That is, the function layer can cause application data to be piggybacked on rendezvous protocol messages and can cause the application data to be passed back to the application layer in receiving rendezvous protocol nodes. In some embodiments, application data is used to identify resources and resource interests. Thus, an application layer can include application specific logic and state that processes data received from and sent to the other lower layers for purposes of identifying resources and resource interests.
Federating Mechanisms
Nodes can federate using a variety of different mechanisms. A first federating mechanism includes peer nodes forwarding information to all other peer nodes. When a node is to join a federation infrastructure, the node utilizes a broadcast/multicast discovery protocol, such as, for example, WS-Discovery to announce its presence and issues a broadcast/multicast find to detect other nodes. The node then establishes a simple forwarding partnership with other nodes already present on the network and accepts new partnerships with newly joining nodes. Thereafter, the node simply forwards all application specific messages to all of its partner nodes.
A second federating mechanism includes peer nodes that most efficiently transmit application specific messages to their destination(s). When a new node is to join a federation infrastructure, the new node utilizes a broadcast/multicast discovery protocol, such as, for example, WS-Discovery to announce its presence and issues a broadcast/multicast find to detect other nodes that are part of the federation infrastructure. Upon detecting another node, the new node establishes a partnership with the other node. From the established partnership, the new node learns about the presence of other nodes already participating in federation infrastructure. It then establishes partnerships with these newly-learned nodes and accepts any new incoming partnership requests.
Both node arrivals/departures and registrations of interest in certain application specific messages are flooded through the federation infrastructure resulting in every node having global knowledge of other partner nodes and registrations of interest in application specific messages. With such global knowledge, any node can send application specific messages directly to the nodes that have expressed interest in the application specific message.
A third federating mechanism includes peer nodes indirectly forwarding all application specific messages to their destination/s. In this third mechanism, nodes are assigned identifiers (ID's), such as, for example, a 128-bit or 160-bit ID. The node responsible for a maintaining registration of interest in a given application specific message can be determined to be the one whose ID is closest to the one obtained by mapping (e.g., hashing) the destination identity (e.g. URI) of the application specific message to this 128-bit or 160-bit ID-space.
In this third mechanism, node arrivals and departures are flooded over the entire fabric. On the other hand, registrations of interest in certain application specific messages are forwarded to the nodes determined to be responsible for maintaining such registration information. For scalability, load balancing, and fault-tolerance, the node receiving registration of interest in certain application specific messages can reliably flood that registration information within its neighborhood set. The neighborhood set for a specified node can be determined to be the set of nodes having IDs within a predefined range on either side of the ID of specified node.
Similar to the second mechanism, a newly-joining node utilizes a broadcast/multicast discovery protocol, such as, for example, WS-Discovery to announce its presence and issues a local broadcast/multi-cast find to detect a node that is already part of the federation infrastructure. The new node establishes a partnership with the discovered node and uses that partnership to learn about the presence of other new nodes participating in the federation infrastructure. The new node then establishes further partnerships with the newly discovered nodes and accepts any new incoming partnership requests. The new node accepts incoming registrations of interest in certain application layer specific resources from its partners for which it is responsible and may flood them over its neighborhood set. Thus, messages can generally be forwarded to their final destination via intermediary routing nodes (e.g., that a newly joining node has partnered with or that a partner node is aware of).
In response to receiving an incoming application specific message, the new node forwards the message to the partner node that may be responsible for maintaining the registration information for the destination specified in the message. Thus, when using this third mechanism, every node in the federation infrastructure has global knowledge of all other nodes but the registration information is efficiently partitioned among the nodes. Application specific messages are transmitted to their final destination via only the partner's nodes that may have the responsibility for maintaining registration information of interest in those application specific messages. Thus, indirection is accomplished by forwarding only to the partner node that has global knowledge of the registration information of interest for the message being processed. This is in contrast to the first mechanism where the indirection is accomplished by forwarding to all the partner nodes.
A fourth federating mechanism includes peer nodes that route messages to other peer nodes. This fourth mechanism differs from the third mechanism at least in that both node arrivals/departures and registrations of interest in certain application specific messages are all routed instead being flooded. Routing protocols are designed to guarantee rendezvous between application specific messages and the registration messages that express interest in those application specific messages.
FIG. 2 illustrates an example of acomputer architecture200 that facilitates routing requests indirectly to partners.Computer architecture200 depicts different types of computer systems and devices potentially spread across multiple local discovery scopes participating in a federation infrastructure.
Workstation233 can include a registered PnP provider instance. To inform its partners of the presence of this PnP provider instance,workstation233routes registration request201 over the federation infrastructure.Registration request201 is initially forwarded tolaptop231, which in turnforwards registration request201 tomessage broker237, which in turnforwards registration request201 tomessage gateway241.Message gateway241 saves the registrationinformation registration request201 in its database and returnssuccess message204 toworkstation233.
Subsequently, another registered provider instance, this time that of running services, comes alive within theworkstation233. This time the node is aware thatmessage gateway241 is responsible for registrations andforwards registration request205 tomessage gateway241 directly.Message gateway241 saves the registrationinformation registration request205 in its database and returnssuccess message206 toworkstation233.
Subsequently, the printer236 (e.g., a UPnP printer) is powered on and sendsannouncement207.Server234 detectsannouncement207 androutes registration request208 tomessage broker237.Message broker237forwards registration request208 tomessage gateway241.Message gateway241 saves the registrationinformation registration request208 in its database and returnssuccess message210 toserver234.
Subsequently,personal computer242issues lookup request211 to discover all devices. Sincepersonal computer242 doesn't know where to forwardlookup request211, itroutes lookup request211 throughworkstation243. As registration and lookup requests are routed to the same destination, the routing protocol essentially guarantees rendezvous between the two requests resulting inworkstation243 forwards findrequest211 tomessage gateway241.Message gateway241 looks up the registration information maintained by it and forwards findrequest211 to both theworkstation233 andserver234.Workstation233 andserver234send response messages214 and216 respectively topersonal computer242.
This fourth mechanism works by routing (instead of flooding) a request to the node (message gateway241) that has global knowledge of the registrations specified in a request. This fourth mechanism, as will be described in further detail below, essentially guarantees that routing can be accomplished in O(log N) hops, where N is the number of nodes participating in the federation infrastructure. Since this fourth mechanism efficiently partitions both node partnership and registration information, it scales to very large networks, even the Internet.
Although a number of federating mechanisms have been described, it would be apparent to one skilled in the art, after having reviewed this description, that other federation mechanisms are possible.
Relationship Between Nodes in a Federation
Accordingly, a federation consists of a set of nodes that cooperate among themselves to form a dynamic and scalable network in which information can be systematically and efficiently disseminated and located. Nodes are organized to participate in a federation as a sorted list using a binary relation that is reflexive, anti-symmetric, transitive, total, and defined over the domain of node identities. Both ends of the sorted list are joined, thereby forming a ring. Thus, each node in the list can view itself as being at the middle of the sorted list (as a result of using modulo arithmetic). Further, the list is doubly linked so that any node can traverse the list in either direction.
Each federating node can be assigned an ID (e.g., by a random number generator with duplicate detection) from a fixed set of IDs between 0 and some fixed upper bound. Thus, adding 1 to an ID of the fixed upper bound results in an ID of zero (i.e., moving from the end of the linked list back to the beginning of the linked listed. In addition, a 1:1 mapping function from the value domain of the node identities to the nodes themselves is defined.
FIG. 3 depicts an example linkedlist304 andcorresponding ring306. Given such a ring, the following functions can be defined:
- RouteNumerically(V, Msg): Given a value V from the value domain of node identities and a message “Msg,” deliver the message to node X whose identity can be mapped to V using the mapping function.
- Neighborhood(X, S): Neighborhood is the set of nodes on the either side of node X with cardinality equal to S.
When every node in the federation has global knowledge of the ring, RouteNumerically(V, Msg) is implemented by directly sending Msg to the node X, whose identity is obtained by applying the mapping function to V. Alternately, when nodes have limited knowledge of other nodes (e.g., only of immediately adjacent nodes), RouteNumerically(V, Msg) is implemented by forwarding the message to consecutive nodes along the ring until it reaches the destination node X.
Alternately (and advantageously), nodes can store enough knowledge about the ring to perform a distributed binary search (without having to have global knowledge or implement routing between immediately adjacent nodes). The amount of ring knowledge is configurable such that maintaining the ring knowledge has a sufficiently small impact on each node but allows increased routing performance from the reduction in the number of routing hops.
As previously described, IDs can be assigned using the “<” (less than) relation defined over a sufficiently large, bounded set of natural numbers, meaning its range is over a finite set of numbers between 0 and some fixed value, inclusive. Thus, every node participating in the federation is assigned a natural number that lies between 0 and some appropriately-chosen upper bound, inclusive. The range does not have to be tight and there can be gaps between numbers assigned to nodes. The number assigned to a node serves as its identity in the ring. The mapping function accounts for gaps in the number space by mapping a number falling in between two node identities to the node whose identity is numerically closest to the number.
This approach has a number of advantages. By assigning each node a uniformly-distributed number, there is an increased likelihood that all segments of the ring are uniformly populated. Further, successor, predecessor, and neighborhood computations can be done efficiently using modulo arithmetic.
In some embodiments, federating nodes are assigned an ID from within an ID space so large that the chances of two nodes being assigned the same ID are highly unlikely (e.g., when random number generation is used). For example, a node can be assigned an ID in the range of 0 to bn-1, where b equals, for example, 8 or 16 and n equals, for example, 128-bit or 160-bit equivalent digits. Accordingly, a node can be assigned an ID, for example, from a range of 0 to 1640-1 (or approximately 1.461502E48). The range of 0 to 1640-1 would provide, for example, a sufficient number of IDs to assign every node on the Internet a unique ID.
Thus, each node in a federation can have:
- An ID which is a numerical value uniformly distributed in the range of 0 to bn-1; and
- A routing table consisting of (all arithmetic is done modulo bn):
- Successor node (s);
- Predecessor node (p);
- Neighborhood nodes (pk, . . . , p1, p, s, s1, . . . , sj) such that sj.s.id>(id+u/2), j≧v/2-1, and pk.p.id<(id-u/2), and k≧v/2-1; and
- Routing nodes (r-(n−1), . . . , r−1, r1, . . . , rn−1) such that r±i=RouteNumerically(id±bi, Msg).
where b is the number base, n is the field size in number of digits, u is the neighborhood range, v is the neighborhood size, and the arithmetic is performed modulo bn. For good routing efficiency and fault tolerance, values for u and v can be u=b and v≧max(log2(N), 4), where N is the total number of nodes physically participating in the federation. N can be estimated from the number of nodes present on a ring segment whose length is greater than or equal to b, for example, when there is a uniform distribution of IDs. Typical values for b and n are b=8 or 16 and n=128-bit or 160-bit equivalent digits.
Accordingly, routing nodes can form a logarithmic index spanning a ring. Depending on the locations of nodes on a ring, a precise logarithmic index is possible, for example, when there is an existing node at each number in the set of id±biwhere i=(1, 2, . . . (n−1)). However, it may be that there are not existing nodes at each number in the set. IN those cases, a node closest to id±bican be selected as a routing node. The resulting logarithmic index is not precise and may even lack unique routing nodes for some numbers in the set.
Referring again toFIG. 3,FIG. 3 illustrates an example of a binary relation between nodes in a federation infrastructure in the form of sortedlist304 andcorresponding ring306. The ID space of sortedlist304 is in the range 0 to 28-1 (or 255). That is, b=2 and n=8. Thus, nodes depicted inFIG. 3 are assigned IDs in a range from 0 to 255.Sorted list304 utilizes a binary relation that is reflexive, anti-symmetric, transitive, total, and defined over the domain of node identities. Both ends of sortedlist304 are joined, thereby formingring306. This makes it possible for each node inFIG. 3 to view itself as being at the middle ofsorted list304. The sortedlist304 is doubly linked so that any node can traverse the sortedlist304 in either direction. Arithmetic for traversing sorted list304 (or ring306) is performed modulo 28. Thus, 255 (or the end of sorted list304)+1=0 (or the beginning of sorted list304).
The routing table indicates that the successor toID64 is ID76 (the ID immediately clockwise from ID64). The successor can change, for example, when a new node (e.g., with an ID of71) joins or an existing node (e.g., ID76) leaves the federation infrastructure. Likewise, the routing table indicates that the predecessor toID64 is ID50 (the ID immediately counters clockwise from ID64). The predecessor can change, for example, when a new node (e.g., with an ID of59) joins or an existing node (e.g., ID50) leaves the federation infrastructure.
The routing table further indicates that a set of neighborhood nodes toID64 haveIDs83,76,50 and46. A set of neighbor nodes can be a specified number of nodes (i.e., neighborhood size v) that are within a specified range (i.e., neighbor range u) ofID64. A variety of different neighborhood sizes and neighbor ranges, such as, for example, V=4 and U=10, can potentially be used to identify the set of neighborhood nodes. A neighborhood set can change, for example, when nodes join or leave the federation infrastructure or when the specified number of nodes or specified range is changed.
The routing table further indicates thatID64 can route tonodes having IDs200,2,30,46,50,64,64,64,64,76,83,98,135, and200. This list is generated by identifying the node closest to each number in the set of id±2iwhere i=(1, 2, 3, 4, 5, 6, 7). That is, b=2 and n=8. For example, thenode having ID76 can be identified from calculating the closest node to 64+23, or 72.
A node can route messages (e.g., requests for access to resources) directly to a predecessor node, a successor node, any node in a set-of neighborhood nodes, or any routing node. In some embodiments, nodes implement a numeric routing function to route messages. Thus, RouteNumerically(V, Msg) can be implemented at node X to deliver Msg to the node Y in the federation whose ID is numerically closest to V, and return node Y's ID to node X. For example, thenode having ID64 can implement RouteNumerically(243, Msg) to cause a message to be routed to thenode having ID250. However, sinceID250 is not a routing node forID64,ID64 can route the message to ID2 (the closest routing node to243). Thenode having ID2 can in turn implement RouteNumerically(243, Msg) to cause the message to be routed (directly or through further intermediary nodes) to thenode having ID250. Thus, it may be that a RouteNumerically function is recursively invoked with each invocation routing a message closer to the destination.
Advantageously, other embodiments of the present invention facilitate partitioning a ring into a ring of rings or tree of rings based on a plurality of proximity criteria of one or more proximity categories (e.g., geographical boundaries, routing characteristics (e.g., IP routing hops), administrative domains, organizational boundaries, etc.). It should be understood a ring can be partitioned more than once using the same type of proximity criteria. For example, a ring can be partition based on a continent proximity criteria and a country proximity criteria (both of a geographical boundaries proximity category).
Since IDs can be uniformly distributed across an ID space (a result of random number generation) there is a high probability that any given segment of a circular ID space contains nodes that belong to different proximity classes provided those classes have approximately the same cardinality. The probability increases further when there are a sufficient number of nodes to obtain meaningful statistical behavior.
Thus, neighborhood nodes of any given node are typically well dispersed from the proximality point of view. Since published application state can be replicated among neighborhood nodes, the published information can be well dispersed as well from the proximality point of view.
FIG. 4 illustrates a ring ofrings400 that facilitates proximal routing.Ring401 can be viewed as a master or root ring, and contains all the nodes in each of therings402,403, and404. Each of therings402,403, and404 contain a subset of nodes fromring401 that are partitioned based on a specified proximity criterion. For example,ring401 may be partitioned based on geographic location, wherering402 contains nodes in North America,ring403 contains nodes in Europe, andring404 contains nodes in Asia.
In a numerical space containing 65,536 (216) IDs, routing a message from a North American node having an ID 5,345 to an Asian node having an ID 23,345 can include routing the message withinring402 until a neighbor node of the Asian node is identified. The neighbor node can then route the message to the Asian node. Thus, a single hop (as opposed to multiple hops) is made between a North American node and an Asian node. Accordingly, routing is performed in a resource efficient manner.
FIG. 5 illustrates an example proximity induced partition tree ofrings500 that facilitates proximal routing. As depicted, partition tree ofrings500 includes a number of rings. Each of the rings represents a partition of a sorted linked list. Each ring including a plurality a nodes having IDs in the sorted linked list. However for clarity due to the number of potential nodes, the nodes are not expressly depicted on the rings (e.g., the ID space ofpartition tree500 may be b=16 and n=40).
Withinpartition tree500,root ring501 is partitioned into a plurality of sub-rings, including sub-rings511,512,513, and514, based on criterion571 (a first administrative domain boundary criterion). For example, each component of a DNS name can be considered a proximity criterion with the partial order among them induced per their order of appearance in the DNS name read right to left. Accordingly, sub-ring511 can be further partitioned into a plurality of sub-rings, including sub-rings521,522, and523, based on criterion581 (a second administrative domain boundary criterion).
Sub-ring522 can be further partitioned into a plurality of sub-rings, including sub-rings531,532, and533, based on criterion572 (a geographic boundary criterion). Location based proximity criterion can be partially ordered along the lines of continents, countries, postal zip codes, and so on. Postal zip codes are themselves hierarchically organized meaning that they can be seen as further inducing a partially ordered sub-list of proximity criteria.
Sub-ring531 can be further partitioned into a plurality of sub-rings, including sub-rings541,542,543, and544, based on criterion573 (a first organizational boundary criterion). A partially ordered list of proximity criterion can be induced along the lines of how a given company is organizationally structured such as divisions, departments, and product groups. Accordingly, sub-ring543 can be further partitioned into a plurality of sub-rings, includingsub-rings551 and552, based on criterion583 (a second organizational boundary criterion).
Withinpartition tree500, each node has a single ID and participates in rings along a corresponding partition path starting from the root to a leaf. For example, each node participating insub-ring552 would also participate insub-rings543,531,522,511 and inroot501. Routing to a destination node (ID) can be accomplished by implementing a RouteProximally function, as follows:
- RouteProximally(V, Msg, P): Given a value V from the domain of node identities and a message “Msg,” deliver the message to the node Y whose identity can be mapped to V among the nodes considered equivalent by the proximity criteria P.
Thus, routing can be accomplished by progressively moving closer to the destination node within a given ring until no further progress can be made by routing within that ring as determined from the condition that the destination node lies between the current node and its successor or predecessor node. At this point, the current node starts routing via its partner nodes in the next larger ring in which it participates. This process of progressively moving towards the destination node by climbing along the partitioning path towards the root ring terminates when the closest node to the destination node is reached within the requested proximal context, as originally specified in the RouteProximally invocation.
Routing hops can remain in the proximal neighborhood of the node that originated the request until no further progress can be made within that neighborhood because the destination node exists outside it. At this point, the proximity criterion is relaxed to increase the size of the proximal neighborhood to make further progress. This process is repeated until the proximal neighborhood is sufficiently expanded to include the destination node (ID). The routing hop made after each successive relaxation of proximal neighborhood criterion can be a potentially larger jump in proximal space while making a correspondingly smaller jump in the numerical space compared to the previous hop. Thus, only the absolutely required number of such (inter-ring) hops is made before the destination is reached.
It may be the case that some hops are avoided for lookup messages since published application data gets replicated down the partition tree when it is replicated among the neighborhood nodes of the destination node.
To accomplish proximal routing, each federation node maintains references to its successor and predecessor nodes in all the rings it participates as a member (similar to successor and predecessor for a single ring)—the proximal predecessor, proximal successor, and proximal neighborhood. In order to make the routing efficient, the nodes can also maintain reference to other nodes closest to an exponentially increasing distance on its either half of the ring as routing partners (similar to routing nodes for a single ring). In some embodiments, routing partner nodes that lie between a pair of consecutive successor or predecessor nodes participate in the same lowest ring shared by the current node and the node numerically closest to it among the successor or predecessor node pairs respectively. Thus, routing hops towards a destination node transition into using a relaxed proximity criterion (i.e., transitioning to a higher ring) only when absolutely needed to make further progress. Accordingly, messages can be efficiently rendezvoused with a corresponding federation node.
In some embodiments, nodes implement a proximal routing function to route messages based on equivalence criteria relations. Thus, given a number V and a message “Msg”, a node can implement RouteProximally(V, Msg, P) to deliver the message to the node Y whose identify can be mapped to V among the nodes considered equivalent by proximity criterion P. The proximity criterion P identifies the lowest ring in the partition tree that is the common ancestor to all the nodes considered proximally equivalent by it. It can be represented as a string obtained by concatenating the proximity criterion found along the path from the root ring to the ring identified by it separated by the path separator character ‘/’. For example, the proximity criterion identifying sub-ring542 can be represented as “Proximity:/.COM/Corp2/LocationA/Div2”. Each ring in thepartition tree500 can be assigned a unique number, for example, by hashing its representational string with a SHA based algorithm. If the number 0 is reserved for the root ring, it can be inferred that RouteNumerically(V, Msg)≡RouteProximally(V, Msg, 0).
For example, a node insub-ring544 can implement RouteProximally to identify a closer node in sub-ring531 (e.g., to a node in sub-ring513). In turn, sub-ring531 can implement RouteProximally to identify a closer node insub-ring522. Likewise, sub-ring522 can implement RouteProximally to identify a closer node insub-ring511. Similarly, sub-ring511 can implement RouteProximally to identify a closer node inring501. Thus, it may be that a RouteProximally function is recursively invoked with each invocation routing a message closer to the destination.
Thus, when proximity criterion is taken into account, routing hops on a path to a a final destination can remain within the proximity of a node that originates a request, while making significant progress between the originating node and the destination node in a numerical space, until either the destination node is reached or no further progress can be made under the chosen proximity criterion at which point it is relaxed just enough to make further progress towards the destination. For example, proximity criterion can be relaxed enough for a message to be routed fromring531 up toring522, etc.
Utilizing the above approach to proximity, it is possible to confine published information to a given ring. For example, organizations may like to ensure that organization specific information is not available to entities outside of their trust domains either (1) implicitly in the form of neighborhood replication to nodes outside of their domains or (2) explicitly in the form of servicing lookup requests for such information. The first aspect is satisfied by replicating published information only among the nodes neighboring the target ID within the specified ring. Because all messages originated by a node are routed by successively climbing the rings to which it belongs towards the root ring, there is a high likelihood that all lookup requests originated within an organization will be able to locate the published information confined to it thereby implicitly satisfying the second aspect.
Also, organizations dislike nodes automatically federating with nodes outside of their trust domain. This can happen, for example, when a visiting sales person connects his/her laptop computer to the network in the customer premises. Ideally, the laptop computer belonging to the sales person wishes to locate information published in its home domain and/or federate with the nodes in its home domain starting at its lowest preferred proximity ring. It will typically not be permitted to federate with the nodes in the customer's domain. Supporting this scenario requires ability to locate seed nodes in the home domain. Such seed nodes can be used for locating information published in the home domain, to join the home federation, and selectively import and export published information across domains. Seed nodes are also sometimes referred as message gateways.
In other embodiments, an entity publishes references to seed nodes in the root ring. Seed nodes can be published at the unique number (such as the one obtained by hashing its representational string) associated with the ring (as a target ID). Seed node information can further be on-demand cached by the nodes in various rings that are on the path to the corresponding target IDs in the root ring. Such on-demand caching provides for improved performance and reduction in hotspots that might occur when semi-static information is looked up quite frequently. Seed node information can also be obtained via other means such as DNS
To provide fault tolerance for confined published information, each node can maintain a set of neighborhood nodes in all of the rings it participates in. Given the above, the state maintained by a node can be summarized as follows:
- An ID which is a numerical value uniformly distributed in the range of 0 to bn-1.
- A routing table consisting of (all arithmetic is done modulo bn):
- For each ring, say ring d, in which the node participates
- Successor node (sd)
- Predecessor node (pd)
- Neighborhood nodes (pkd, . . . , p1d, pd, sd, s1d, . . . , sjd) such that sjd.sd.id>(id+u/2), j≧v/2-1, pkd.pd.id<(id−u/2), and k≧v/2-1.
- Routing nodes (r-(n−1), . . . , r−1, r1, . . . , rn−1) such that r±i=RouteProximally(id±bi, updateMsg, d) such that sd≦id+bi≦sd+1or pd+1≦id−bi≦pdas appropriate.
where b is the number base, n is the field size in number of digits, u is the neighborhood range, and v is the neighborhood size.
Note that a subset of the neighborhood nodes maintained by a given node in ring “d” can appear again as neighborhood nodes in the child ring “d+1” in which the given node participates as well. As such one can derive the upper bound on the total number of neighborhood nodes maintained by a given node across all the D rings it participates as D*max(u,v)/2. This considers that only one reference to a given node is kept and the worst case upper bound is for a balanced tree.
It should be noted that when a ring is partitioned into a plurality of corresponding sibling sub-rings, it is permitted for a specified node to simultaneously participate in more than one of the plurality of corresponding sibling sub-rings, for example, through aliasing. Aliasing can be implemented to associate different state, for example, from different sub-rings, with the specified node. Thus, although aliases for a given node have the same ID, each alias can have distinct state associated with them. Aliasing allows the specified node to participate in multiple rings having distinct proximity criteria that are not necessarily common ancestors of more specific proximity criteria. That is, the specified node can participate in multiple branches of the proximity tree.
For example, a dual NIC (wired and wireless) laptop can be considered to be proximally equivalent to both other wireless and wired nodes sharing the same LAN segments as the laptop. But, these two distinct proximity criteria can be modeled as sub-criteria that are applicable only after application of a different higher priority proximity criterion, such as, for example, one based on organizational membership. As the laptop belongs to the same organization, the aliased nodes in the two sub-rings representing 1) membership in the wired and 2) membership in the wireless LAN segments merge into a single node in the ring representing the organization to which the laptop belongs. It should be understand that the RouteProximally works as expected without any modifications in the presence of aliasing.
Each proximal ring can be configured in accordance with (potentially different) ring parameters. Ring parameters can be used to define a neighborhood (e.g., ring parameters can represent a neighborhood range, a neighborhood size, ping message and depart message timing and distribution patterns for ping and depart messages), indicate a particular federating mechanisms (e.g., from among the above-described first through fourth federating mechanisms previously described or from among other federating mechanisms), or define communication specifics between routing partners in the same proximal ring. Some ring parameters may be more general, applying to a plurality of different federating mechanisms, while other ring parameters are more specific and apply to specific type of federating mechanism.
Ring parameters used to configure a higher level proximal ring can be inherited in some embodiments by lower level proximal rings. For example, it may be thatring543 inherits some of the ring parameters of ring531 (which in turn inherited fromring522, etc.). Thus, a neighborhood size and neighborhood range associated withring531 is also associated withring541.
However, inherited ring parameters can be altered and/or proximal rings can be individually configured in accordance with different ring parameters. For example, it may be thatring511 is for an administrative domain that contains a large number of nodes and thus the above-described fourth federating mechanism is more appropriate forring511. On the other hand, it may be thatring521 is for a small business with a relatively smaller number of nodes and thus the above-described second federating mechanism is more appropriate forring521. Thus, the ring parameters associated withring521 can be set to (or inherited parameters changed to) different values than the ring parameters associated withring511. For example, a ring parameter indicating a particular type of federating mechanisms can be different betweenrings511 and521. Similarly parameters defining a neighborhood can be different betweenrings511 and521. Further,ring521 can be configured in accordance with specific parameters that are specific to the above-described second federating mechanism, whilering511 is configured in accordance additional with specific parameters that are specific to the above-described fourth federating mechanism.
Accordingly, proximal rings can be flexibly configured based on the characteristics (e.g., number, included resources, etc.) of nodes in the proximal rings. For example, an administrator can select ring parameters for proximal rings using a configuration procedure (e.g., through a user-interface). A configuration procedure can facilitate the configuration of inheritance relationships between proximal rings as well as the configuration of individual proximal rings, such as, for example, to override otherwise inherited ring parameters.
FIG. 8 illustrates an example flow chart of amethod800 for partitioning the nodes of a federation infrastructure. Themethod800 will be described with respect to the rings of partition atree500 inFIG. 5.Method800 includes an act of accessing a sorted linked list containing node IDs that have been assigned to nodes in a federation infrastructure (act801). For example, the sorted linked list represented byring501 can be accessed. The node IDs of the sorted linked list (the nodes depicted on ring501) can represent nodes in a federation infrastructure (e.g., federation infrastrucrel00).
Method800 includes an act of accessing proximity categories that represent a plurality of different proximity criteria for partitioning the sorted linked list (act802). For example, proximity criterion representing domain boundaries561, geographical boundaries562, and organizational boundaries563 can be accessed. However, other proximity criteria, such as, trust domain boundaries, can also be represented in accessed proximity criterion. Proximity categories can include previously created partially ordered lists of proximity criteria. A ring can be partitioned based on partially ordered lists of proximity criteria.
Method800 includes an act of partitioning the sorted link list into one or more first sub lists based on a first proximity criterion, each of the one or more first sub lists containing at least a subset of the node IDs from the sorted linked list (act803). For example,ring501 can be partitioned intosub-rings511,512,513, and514 based oncriterion571. Each ofsub-rings511,512,513, and514 can contain a different sub-set of node IDs fromring501.
Method800 includes an act of partitioning a first sub list, selected from among the one or more first sub lists, into one or more second sub lists based on a second proximity criterion, each of the one or more second sub lists containing at least a subset of node IDs contained in the first sub list (act804). For example, sub-ring511 can be partitioned intosub-rings521,522, and523 based oncriterion581. Each of he sub-rings521,522, and523 can contain a different sub-set of node IDs fromsub-ring511.
FIG. 9 illustrates an example flow chart of amethod900 for populating a node's routing table. Themethod900 will be described with respect to the sorted linkedlist304 andring306 inFIG. 3.Method900 includes an act of inserting a predecessor node into a routing table, the predecessor node preceding a current node relative to the current node in a first direction of a sorted linked list (act901). For example, thenode having ID50 can be inserted into the routing table as a predecessor for the node having ID64 (the current node). Moving in a clockwise direction321 (from end A of sorted linkedlist304 towards end B of sorted linked list304), thenode having ID50 precedes thenode having ID64. Inserting a predecessor node can establish a symmetric partnership between the current node and the predecessor node such that current node is a partner of predecessor node and the predecessor node is a partner of the current node
Method900 includes an act of inserting a successor node into the routing table, the successor node succeeding the current node relative to the current node in the first direction in the sorted linked list (act902). For example, thenode having ID76 can be inserted into the routing table as a successor for the node having ID64 (the current node). Moving in acounter-clockwise direction322, thenode having ID76 succeeds thenode having ID64. Inserting a successor node can establish a symmetric partnership between the current node and the successor node such that current node is a partner of the successor node and the successor node is a partner of the current node.
Method900 includes an act of inserting appropriate neighborhood nodes into the routing table, the neighborhood nodes identified from the sorted linked list in both the first direction and in a second opposite direction based on a neighborhood range and neighborhood size (act903). For example, thenodes having IDs83,76,50, and46 can be inserted into the routing table as neighborhood nodes for the node having ID64 (the current node). Based on a neighborhood range of 20 and aneighborhood size 4, thenodes having IDs83 and76 can be identified inclockwise direction321 and thenodes having IDs50 and46 can be identified in counter-clockwise direction322 (moving from end B of sorted linkedlist304 towards end A of sorted linked list304). It may be that in some environments no appropriate neighborhood nodes are identified. Inserting a neighborhood node can establish a symmetric partnership between the current node and the neighborhood node such that current node is a partner of the neighborhood node and the neighborhood node is a partner of the current node.
Method900 includes an act of inserting appropriate routing nodes into the routing table, the routing nodes identified from the sorted linked list in both the first and second directions based on the a number base and field size of the ID space for the federation infrastructure, the routing nodes representing a logarithmic index of the sorted link list in both the first and second directions (act904). For example, thenodes having IDs200,2,30,46,50,64,64,64,64,64,76,83,98,135 and200 can be inserted into the routing table as routing nodes for thenode having ID64. Based on thenumber base2 and field size of 8 thenodes having IDs64,64,76,83,98,135 and200 can be identified indirection321 and thenodes having IDs64,64,50,46,30,2, and200 can be identified indirection322. As depicted insidering306, the routing nodes represent a logarithmic index of thesorted link list304 in bothclockwise direction321 andcounter-clockwise direction322. Inserting a routing node can establish a symmetric partnership between the current node and the routing node such that current node is a partner of the routing node and the routing node is a partner of the current node.
FIG. 7 illustrates an example flow chart of amethod700 for populating a node routing table that takes proximity criteria into account. Themethod700 will be described with respect to the rings inFIG. 5.Method700 includes an act of inserting a predecessor node for each hierarchically partitioned routing ring the current node participates in into a routing table (act701). Each predecessor node precedes the current node in a first direction (e.g., clockwise) within each hierarchically partitioned routing ring the current node participates in. The hierarchically partitioned routing rings are partitioned in accordance with corresponding proximity criteria and contain at least subsets of a bi-directionally linked list (and possibly the whole bi-directionally linked list). For example, it may be that a specified node participates inroot ring501 andsub-rings511,522,523,531, and542. Thus, a predecessor node is selected for the specified node from within each of therings501 andsub-rings511,522,523,531, and542.
Method700 includes an act of inserting a successor node for each hierarchically partitioned routing ring the current node participates in into the routing table (act702). Each successor node succeeding the current node in the first direction within each hierarchically partitioned routing ring the current node participates in. For example, a successor node is selected for the specified node from within each of therings501 andsub-rings511,522,523,531, and542.
Method700 includes an act of inserting appropriate neighborhood nodes for each hierarchically partitioned routing ring the current node participates in into the routing table (act703). The neighborhood nodes can be identified in both the first direction (e.g., clockwise) and in a second opposite direction (e.g., counter clockwise) based on a neighborhood range and neighborhood size from the hierarchically partitioned routing rings the current node participates in. For example, neighborhood nodes can be identified for the specified node from within each of therings501 andsub-rings511,522,523,531, and542.
Method700 includes an act of inserting appropriate routing nodes for each hierarchically partitioned routing ring the current node participates in into the routing table (act704). For example, routing nodes can be identified for the specified node from within each of therings501 andsub-rings511,522,523,531, and542.
In some embodiments, appropriate routing nodes are inserted for each proximity ring d except the leaf ring (or leaf rings in embodiments that utilize aliasing), in which the node Y participates. Appropriate routing nodes can be inserted based on the following expression(s):
ifY.sd.id<Y.id+bi<Y.sd+1.idis true, then use ringd;or
ifY.pd.id<Y.id−bi<Y.pd+1.idis true, then use ringd.
If a ring has not been identified in the previous step, use the lead (e.g., ring501) ring as ring d. Now, ring d is the proximity ring in which node Y should look for the routing partner closest to z.
FIG. 10 illustrates an example flow chart of a1000 method for routing a message towards a destination node. Themethod1000 will be described with respect to the sorted linkedlist304 andring306 inFIG. 3.Method1000 includes an act of a receiving node receiving a message along with a number indicating a destination (act1001). For example, thenode having ID64 can receive a message indicating a destination of212.
Method1000 includes an act of determining that the receiving node is at least one of numerically further from the destination than a corresponding predecessor node and numerically further from the destination than a corresponding successor node (act1002). For example, indirection322,ID64 is further from destination212 thanID50 and, indirection321,ID64 is further from destination212 thanID76.Method1000 includes an act of determining that the destination is not within a neighborhood set of nodes corresponding to the receiving node (act1003). For example, the node withID64 can determine that destination212 is not within the neighborhood set of83,76,50, and46.
Themethod1000 includes an act of identifying an intermediate node from a routing table corresponding to the receiving node, the intermediate node being numerically closer to the destination than other routing nodes in the corresponding routing table (act1004). For example, thenode having ID64 can identify the routingnode having ID200 as being numerically closer to destination212 that other routing nodes. Themethod1000 includes an act of sending the message to the intermediate node (act1005). For example, thenode having ID64 can send the message to thenode having ID200.
FIG. 11 illustrates an example flow chart of amethod1100 for routing a message towards a destination node based on proximity criteria. Themethod1100 will be described with respect to the rings inFIG. 4 andFIG. 5.Method1100 includes an act of a receiving node receiving a message along with a number indicating a destination and a proximity criterion (act1101). The proximity criterion defines one or more classes of nodes. The receiving node receives the message as part of a current class of nodes selected form among the one or more classes of nodes based on the proximity criterion. For example, thenode having ID172 can receive a message indicating a destination of201 and proximity criterion indicating that the destination node be part of classes represented byring401. Thenode having ID172 can receive the message as part ofring404.
Method1100 includes an act of determining that the receiving node is at least one of, numerically further from the destination than a corresponding predecessor node and numerically further from the destination than a corresponding successor node, among nodes in a selected class of nodes (act1102). For example, withinring404, the node withID172 is further fromdestination201 than thenode having ID174 in the clockwise direction and is further fromdestination201 than thenode having ID153 in the counterclockwise direction.
Method1100 includes an act of determining that the destination is not within the receiving node's neighborhood set of nodes for any of the one or more classes of nodes defined by the proximity criterion (act1103). For example, thenode having ID172 can determine thatdestination201 is not in a corresponding neighborhood set inring404 or inring401.
Method1100 includes an act of identifying an intermediate node from the receiving node's routing table, the intermediate node being numerically closer to the destination than other routing nodes in the routing table (act1104). For example, thenode having ID172 can identify thenode having ID194 as being numerically closer todestination201 than other routing nodes inring404. Themethod1100 includes an act of sending the message to the intermediate node (act1105). For example, thenode having ID172 can send the received message to thenode having ID194. Thenode having ID172 can send the received message to thenode having ID194 to honor a previously defined partially ordered list of proximity criterion
Node194 may be as close todestination201 as is possible withinring404. Thus, proximity can be relaxed just enough to enable further routing towards the destination to be made inring401 in the next leg. That is, routing is transitioned fromring404 to ring401 since no further progress towards the destination can be made onring404. Alternately, it may be that thenode having ID201 is within the neighborhood of thenode having ID194 inring401 resulting in no further routing. Thus, in some embodiments, relaxing proximity criteria to get to the next higher ring is enough to cause further routing.
However, in other embodiments, incremental relaxation of proximity criteria causing transition to the next higher ring continues until further routing can occur (or until the root ring is encountered). That is, a plurality of transitions to higher rings occurs before further routing progress can be made. For example, referring now toFIG. 5, when no further routing progress can be made onring531, proximity criteria may be relaxed enough to transition to ring511 or even to rootring501.
FIG. 6 and the following discussion are intended to provide a brief, general description of a suitable computing environment in which the invention may be implemented. Although not required, the invention will be described in the general context of computer-executable instructions, such as program modules, being executed by computer systems. Generally, program modules include routines, programs, objects, components, data structures, and the like, which perform particular tasks or implement particular abstract data types. Computer-executable instructions, associated data structures, and program modules represent examples of the program code means for executing acts of the methods disclosed herein.
With reference toFIG. 6, an example system for implementing the invention includes a general-purpose computing device in the form ofcomputer system620, including aprocessing unit621, asystem memory622, and asystem bus623 that couples various system components including thesystem memory622 to theprocessing unit621.Processing unit621 can execute computer-executable instructions designed to implement features ofcomputer system620, including features of the present invention. Thesystem bus623 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. The system memory includes read only memory (“ROM”)624 and random access memory (“RAM”)625. A basic input/output system (“BIOS”)626, containing the basic routines that help transfer information between elements withincomputer system620, such as during start-up, may be stored inROM624.
Thecomputer system620 may also include magnetichard disk drive627 for reading from and writing to magnetichard disk639,magnetic disk drive628 for reading from or writing to removablemagnetic disk629, andoptical disk drive630 for reading from or writing to removableoptical disk631, such as, or example, a CD-ROM or other optical media. The magnetichard disk drive627,magnetic disk drive628, andoptical disk drive630 are connected to thesystem bus623 by harddisk drive interface632, magnetic disk drive-interface633, andoptical drive interface634, respectively. The drives and their associated computer-readable media provide nonvolatile storage of computer-executable instructions, data structures, program modules, and other data for thecomputer system620. Although the example environment described herein employs magnetichard disk639, removablemagnetic disk629 and removableoptical disk631, other types of computer readable media for storing data can be used, including magnetic cassettes, flash memory cards, digital versatile disks, Bernoulli cartridges, RAMs, ROMs, and the like.
Program code means comprising one or more program modules may be stored onhard disk639,magnetic disk629,optical disk631,ROM624 orRAM625, including anoperating system635, one ormore application programs636,other program modules637, andprogram data638. A user may enter commands and information intocomputer system620 throughkeyboard640, pointingdevice642, or other input devices (not shown), such as, for example, a microphone, joy stick, game pad, scanner, or the like. These and other input devices can be connected to theprocessing unit621 through input/output interface646 coupled tosystem bus623. Input/output interface646 logically represents any of a wide variety of different interfaces, such as, for example, a serial port interface, a PS/2 interface, a parallel port interface, a Universal Serial Bus (“USB”) interface, or an Institute of Electrical and Electronics Engineers (“IEEE”) 1394 interface (i.e., a FireWire interface), or may even logically represent a combination of different interfaces.
Amonitor647 or other display device is also connected tosystem bus623 viavideo interface648. Speakers669 or other audio output device is also connected tosystem bus623 via audio interface649. Other peripheral output devices (not shown), such as, for example, printers, can also be connected tocomputer system620.
Computer system620 is connectable to networks, such as, for example, an office-wide or enterprise-wide computer network, a home network, an intranet, and/or the Internet.Computer system620 can exchange data with external sources, such as, for example, remote computer systems, remote applications, and/or remote databases over such networks.
Computer system620 includesnetwork interface653, through whichcomputer system620 receives data from external sources and/or transmits data to external sources. As depicted inFIG. 6,network interface653 facilitates the exchange of data withremote computer system683 vialink651.Network interface653 can logically represent one or more software and/or hardware modules, such as, for example, a network interface card and corresponding Network Driver Interface Specification (“NDIS”) stack.Link651 represents a portion of a network (e.g., an Ethernet segment), andremote computer system683 represents a node of the network.
Likewise,computer system620 includes input/output interface646, through whichcomputer system620 receives data from external sources and/or transmits data to external sources. Input/output interface646 is coupled to modem654 (e.g., a standard modem, a cable modem, or digital subscriber line (“DSL”) modem) vialink659, through whichcomputer system620 receives data from and/or transmits data to external sources. As depicted inFIG. 6, input/output interface646 andmodem654 facilitate the exchange of data withremote computer system693 vialink652.Link652 represents a portion of a network andremote computer system693 represents a node of the network.
WhileFIG. 6 represents a suitable operating environment for the present invention, the principles of the present invention may be employed in any system that is capable of, with suitable modification if necessary, implementing the principles of the present invention. The environment illustrated inFIG. 6 is illustrative only and by no means represents even a small portion of the wide variety of environments in which the principles of the present invention may be implemented.
In accordance with the present invention, nodes, application layers, and other lower layers, as well as associated data, including routing tables and node IDs may be stored and accessed from any of the computer-readable media associated withcomputer system620. For example, portions of such modules and portions of associated program data may be included inoperating system635,application programs636,program modules637 and/orprogram data638, for storage insystem memory622.
When a mass storage device, such as, for example, magnetichard disk639, is coupled tocomputer system620, such modules and associated program data may also be stored in the mass storage device. In a networked environment, program modules depicted relative tocomputer system620, or portions thereof, can be stored in remote memory storage devices, such as, system memory and/or mass storage devices associated withremote computer system683 and/orremote computer system693. Execution of such modules may be performed in a distributed environment as previously described.
The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. All changes, which come within the meaning and range of equivalency of the claims, are to be embraced within their scope.