USPatent applicationPatented

Method and system for matching consumers to events employing content-based multicast routing using approximate groups

Granted 27 Apr 2004 · 5 office actions

Current assignee: Google · originally International Business Machines

Law firm: Law firm · Log in to unlock

Attorney: Attorney · Log in to unlock

Inventors: Robert E. Strom, Mark Astley, Daniel C. Sturman · Examiner: Wayne Amsbury · AU 2171 · TC 2100

Application· this page
9538471
filed 30 Mar 2000
Publication
Not published
not published
Patent
US 6,728,715
granted 27 Apr 2004

Life of the application

19 dated events
⤢ drag to zoom20002002200420062008201020122014201620182020ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

A facility is provided for distributing events to consumers in a content-based publish-subscribe system, wherein the consumers each have at least one subscription. The facility includes deriving a set of g approximate multicast groups from a larger set of G possible multicast groups in the publish-subscribe system. The deriving includes exploiting knowledge of subscription predicates of the consumers of the publish-subscribe system. The set of G possible multicast groups is collapsed to the smaller set of g approximate multicast groups, while minimizing the expected performance penalty in using the approximate multicast groups. The set of g approximate multicast groups is then used to forward events to consumers within the publish-subscribe system.

Description

11 parts
›CROSS-REFERENCE TO RELATED APPLICATIONS

This application contains subject matter which is related to the subject matter of the following applications, each of which is assigned to the same assignee as this application. Each of the below listed applications is hereby incorporated herein by reference in its entirety:

“Method And System For Matching Consumers To Events,” Astley et al., Ser. No. 08/975,280, Filed Nov. 20, 1997, and issued Apr. 10, 2001, U.S. Pat. No. 6,216,132;

“Routing Messages Within A Network Using The Data Content Of The Message,” Chandra et al., Ser. No. 08/975,303, filed Nov. 20, 1997, and issued Jul. 18, 2000, U.S. Pat. No. 6,091,724;

“Method And System For Applying Cluster-Based Group Multicast to Content-Based Publish-Subscribe Systems,” Gurdudth S. Banavar, Ser. No. 09/538,482, co-filed herewith, and issued Jan. 1, 2002, as U.S. Pat. No. 6,336,119.

›TECHNICAL FIELD

This invention relates, in general, to event computing systems and, more particularly, to a content-based multicast routing technique which delivers events to consumers of an event computing system interested in a particular set of events.

›BACKGROUND ART

A common practice for integrating autonomous components within a computing system has been to utilize events. Events are, for example, data generated by a provider and delivered through a communication medium, such as a computer network, hard disk, or random access memory, to a set of interested consumers. The providers and consumers need not know one another's identity, since delivery is provided through intermediary software. This independence between provider and consumer is known as decoupling.

One example of an event computing system is a database event system. Modern database systems include support for event triggers. Event triggers associate a filter, which is a predicate that selects a subset of events and excludes the rest, with an action to take in response to events on the database. An event on a database is any change to the state of the database.

In database event systems, gating tests have been used to determine which consumers of a system are interested in a particular event. That is, gating tests have been used to match filters in event triggers to events. As described in “A Predicate Matching Algorithm for Database Rule Systems,” by Hanson et al., Proceedings of SIGMOD (1991), pp. 271-280, gating tests identify a single predicate for each filter as primary, and tests are organized in a data structure based on this primary predicate. Additionally, the data needs to be organized based on the primary predicate.

Another example of an event computing system is a distributed event system, also known as a publish/subscribe system. A publish/subscribe system is a mechanism where subscribers express interest in future information by some selection criterion, publishers provide information, and the mechanism delivers the information to all interested subscribers. Current publish/subscribe systems organize information around groups (also called channels, subjects or streams). Providers or publishers publish events to groups and consumers or subscribers subscribe to all data from a particular group.

One example of a publish/subscribe system is described in detail in U.S. Pat. No. 5,557,798, issued to Skeen et al. on Sep. 17, 1996, and entitled “Apparatus And Method For Providing Decoupling Of Data Exchange Details For Providing High Performance Communication Between Software Processes”, which is hereby incorporated herein by reference in its entirety. In U.S. Pat. No. 5,557,798, the publisher of an event annotes each message with a group identifier called a subject and a subscriber subscribes to a particular subject. Thus, if a subscriber is interested in just a portion of the events having a given subject, it would have to receive the entire subject and then discard the unwanted information.

Based on the foregoing, a need exists for a matching capability that does not require the partitioning of data into subjects. A further need exists for a matching capability that enables a consumer to use any filtering criterion expressible with the available predicates. Additionally, a need exists for a mechanism that allows a consumer to receive only the information that it desires, such that the filtering is done independent of the consumer.

›SUMMARY OF THE INVENTION · 1 of 2

One approach to addressing the above-noted needs is described in the above-incorporated, co-pending U.S. patent application Ser. No. 08/975,280, entitled “Method and System for Matching Consumers to Events.” In this approach, referred to herein as a content-based event computing system, the matching facility includes a search data structure (e.g., a search tree or search graph), which is used to determine the consumers interest in a particular event. Content-based subscription is the ability of subscribers to specify interest in events based on operations limited only by the structure of the events and the operation supported by the pattern language.

Applicants have identified a problem arising with content-based subscription which arises when using internet protocol (IP) multicasting of an event. In a practical content-based subscription system, there will typically be too many groups of clients or consumers to use a multicast facility.

As one example, the environment of this invention may include content-based, publish/subscribe systems deployed over IP networks such as the Internet. Clients are either publishers or subscribers, and are attached to machines referred to herein as brokers. The publisher's broker receives a published message (also referred to herein as an “event”) and delivers it to subscriber brokers at least one of whose attached clients has a subscription matched by the message. These subscriber brokers then forward the message to the at least one attached client. Content-based systems are more flexible and provide more selectivity than subject-based systems. However, the multicast problem for content-based message delivery middleware is more complex than for subject-based delivery once the number of destinations for messages becomes large. It may no longer be straightforward or efficient to use IP multicast groups to distribute messages of a content-based system over a network because the number of such groups required grows rapidly with the number of subscriptions. This number eventually becomes so large that either the supported range of multicast addresses is exceeded or the overhead of setting up and listening to such a large number of multicast addresses becomes excessive.

The goal of the present invention is to replace a potentially large set of IP multicast addresses with a much smaller set, which will be a conservative approximation. That is, every broker which might require a message will receive it, but certain brokers may possibly receive messages they do not actually need. These extra messages cause wasted bandwidth in the network and wasted processing time in the receiving broker, which can be quantified by a penalty function. Thus, the present invention collapses a large number of groups to a smaller number of groups, while approximately minimizing the expected penalty. The invention disclosed herein uses dynamic information about the existing set of subscriptions and the expected probabilities of different events in order to perform this collapse.

To summarize, the shortcomings of the prior art are overcome and additional advantages are provided through the provision of a method for distributing events to consumers in a content-based publish/subscribe system. The method includes: deriving a set of g approximate multicast groups from a larger set of G possible multicast groups in the publish-subscribe system, the deriving including exploiting knowledge of subscription predicates of at least some consumers of the publish-subscribe system; and using the set of g approximate multicast groups to forward an event to at least one consumer withing the publish-subscribe system.

In another aspect, the present invention provides at least one program storage device readable by a machine, tangibly embodying at least one program of instructions executable by the machine to perform a method for distributing events to consumers in a content-based publish-subscribe system, wherein the consumers each have at least one subscription. The method includes: deriving a set of g approximate multicast groups from a larger set of G possible multicast groups in the publish-subscribe system. The deriving including exploiting knowledge of subscription predicates of at least some consumers of the publish-subscribe system; and using the set of g approximate multicast groups to forward an event to at least one consumer within the publish-subscribe system.

In a further aspect, an article of manufacture is provided herein which includes at least one computer usable medium having computer readable program code means embodied therein for causing the distributing of events to consumers in a content-based publish-subscribe system, wherein the consumers each have at least one subscription. The computer readable program code means in the article of manufacture includes: computer readable program code means for causing a computer to effect deriving a set of g approximate multicast groups from a larger set of G possible multicast groups in the publish-subscribe system. The deriving including exploiting knowledge of subscription predicates of at least some consumers of the publish-subscribe system; and computer readable program code means for causing a computer to effect using the set of g approximate multicast groups to forward an event to at least one consumer within the publish-subscribe system.

In a further aspect, a system is provided for distributing events to consumers in a content-based publish-subscribe system. The system includes means for deriving a set of g approximate multicast groups from a larger set of G possible multicast groups in the publish-subscribe system. The means for deriving includes means for exploiting knowledge of subscription predicates of at least some consumers of the publish-subscribe system. The system further includes means for using the set of g approximate multicast groups to forward an event to at least one consumer within the publish-subscribe system.

To restate, there are numerous advantages of a distribution approach such as presented herein in comparison with other techniques for distributing events in a content-based publish-subscribe system. In the following discussion, the term “exact multicast group” refers to a subset of brokers that share a common subscription predicate but does not overlap with any other subscription predicate (also referred to herein as “initial groups”). The term “IP multicast group” refers to an assignment of a multicast system address to a collection of brokers, irrespective of predicates.

›SUMMARY OF THE INVENTION · 2 of 2

Naive use of multicast techniques: Using multicast requires two preparatory steps before messages may be sent: step one is to actually construct all the groups required for a particular application, step two is to instruct each broker to listen to one or more groups. Naive multicast refers to the technique of creating one IP multicast group for every exact multicast group. Relative to naive multicast, the approach presented herein has the following advantages:

1. Address Space Limits: In the present approach, a multicast solution is provided even though the number of exact multicast groups exceeds the number of IP multicast groups allowed by the system.

2. Group Creation Cost: The number of actual multicast groups used may be adjusted in order to minimize the initial cost of group setup (step one above). In contrast, group creation under the naive approach may be extremely expensive due to the large number of groups.

3. Broker Overhead: the number of actual multicast groups used may be adjusted in order to minimize the overhead experienced by each broker (relating to step two above). In contrast, broker overhead under the naive approach may be unusually high due to the large number of groups each broker must listen to.

Broadcast or “flooding” techniques: Flooding is a variant of multicast where one group is created and every broker listens to the same group. Thus, each message sent to this group is received by every broker (hence “flooding”), regardless of whether or not a broker has a client wishing to receive the event. Relative to flooding, the approach presented herein has the following advantages:

1. Waste Messages: Depending on the distribution of client subscriptions, the flooding approach tends to generate large numbers of wasted messages: messages which are sent to brokers that have no client wishing to receive the message. Waste messages cause brokers to waste CPU time on handling the unwanted message. Although waste messages are possible using the present approach, on average far fewer waste messages are generated and thus the present invention imposes lower overhead on broker CPU time.

2. Bandwidth Utilization: Waste messages also waste network bandwidth because messages may be unnecessarily sent down certain network links. Thus, waste messages clog up network links and routers with unnecessary traffic. In the present approach, fewer waste messages are generated and thus network bandwidth is utilized more efficiently.

Point-to-point techniques: A publishing broker using the point-to-point approach distributes events either by directly sending the event to each destination broker one at a time, or by sending the event through a “tree” of brokers, where each broker in the tree may forward the event to one or more of its neighbors (also by sending the event to its neighbors one at a time). For example, reference the above-incorporated United States patent application entitled “Routing Messages Within A Network Using the Data Content of the Message.” Relative to point-to-point, the present approach has the following advantages:

1. CPU Utilization: A broker using the present invention only needs to make one “transmit” call to distribute an event; the multicast system performs all the routing necessary to ensure the correct delivery of the event. On the other hand, a broker using point-to-point distribution must make a separate “transmit” call for each neighboring broker the event should be delivered to. The latter approach imposes higher overhead on the broker because it must spend time making additional “transmit” calls (when it could be spending that time servicing other messages and hence increasing system throughput).

2. Bandwidth Utilization: Brokers using the point-to-point approach may send a single event multiple times over the same network link in cases where neighboring brokers share a common subset of network links. This approach wastes network bandwidth because from a network perspective, the additional sends down common links are unnecessary traffic. In contrast, multicast ensures that each network link is used at most once. Therefore, in general, the present approach wastes less bandwidth than point-to-point approaches. Moreover the amount of bandwidth wasted is a tunable property under our invention.

3. Latency: Multicast approaches exploit fast internet routers to efficiently deliver events. The point-to-point approach using a tree requires intermediate brokers to process messages and forward them to other brokers. The extra step of receiving a message, processing it, and passing it on to other brokers introduces delays and end-to-end message latency. Because the present approach utilizes multicast, a much lower overall latency is experienced than these multi-hop point-to-point approaches.

Additional features and advantages are realized through the techniques of the present invention. Other embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed invention.

›BRIEF DESCRIPTION OF THE DRAWINGS · 1 of 2

The above-described objects, advantages and features of the present invention, as well as others, will be more readily understood from the following detailed description of certain preferred embodiments of the invention, when considered in conjunction with the accompanying drawings in which:

FIG. 1 depicts a sample environment for deployment of one embodiment of the invention. The environment includes a collection of brokers 101 a- 101 i, connected through an IP-based network, such as the Internet.

FIG. 2 depicts broker 101 a of FIG. 1, and a collection of attached clients 201 a - 201 e. Clients, which are also referred to herein as consumers, may be applications on the brokers themselves, or they may be on separate machines attached via a communication link such as a dial-up connection, or via a local area network (LAN).

FIG. 3 illustrates by way of example a collection of content-based subscriptions associated with client 201 a of FIG. 2 . Each subscription is a predicate on attributes (in this example, x, y, and z) of published events. It represents a request for the system to deliver event messages whose attribute values satisfy the predicate.

FIG. 4 illustrates by way of example a broker subscription table for broker 101 a which records each subscription required by one of clients 201 a- 201 e attached to the broker.

FIG. 5 illustrates one embodiment of an event frequency table 501 in accordance with the present invention. Each row of the table corresponds to a particular attribute that may appear in events; and each column contains the probability of finding the particular value or range of values for that attribute. The table is used herein to compute the probability of particular subscription predicates being satisfied. Assuming that the attributes are independent (uncorrelated) such a table is sufficient to compute a probability for any possible subscription predicate. If the attributes are not independent, appropriate adjustments will be required so that the table can be used to compute the needed probabilities.

FIG. 6 illustrates a first step in the construction of an initial group lattice in accordance with the present invention. This construction uses as input the set of subscription predicates, the broker to which each subscription is attached, and the event frequency table 501 . For each subscription in each broker subscription table ( 401 a- 401 e ), a node in the initial group lattice is created. Each node 600 contains: a broker set 601 specifying the set of brokers in the group; a set of predicates 602 constituting the sets of possible events which will be forwarded to these brokers; a total probability 603 which is the probability of a given event satisfying the listed predicates; and an exclusive probability 604 , which is the total probability less the probability that a more refined predicate is satisfied. Initially the exclusive probability 604 is set to zero.

FIG. 7 illustrates one embodiment of a second step in the construction of one embodiment of the initial groups lattice in accordance with the present invention. If the predicates associated with a pair of nodes match a common subset of events then a new node is added to the lattice, i.e., if the new node does not already exist. For example, the predicates of nodes 700 a and 700 b match a common subset of events with predicate x=1 & y=2 & z=1. Thus, node 700 d is created with the combined broker set of 700 a and 700 b (i.e. {a,b}), the common predicate (i.e., x=1 & y=2 & z=1), a combined probability determined from the event frequency table 501 (i.e. 0.2×0.1×0.1=0.002). The exclusive probability remains 0. Nodes 700 b and 700 c are similarly combined to form node 700 e .

FIG. 8 illustrates one embodiment of a third step in the construction of the initial groups lattice in accordance with the present invention. A node A is “downward linked” to a node B if the predicate in A is a superset of the predicate in B. For example, node 800 b is downward linked to node 800 a because any event which matches the predicate x=1 & y=2 & z=5 will also match the predicate z=5. Similarly, node 800 c is downward linked to node 800 b . Transitive downward links are removed. For example, if node A is downward linked to node B, and node B is downward linked to node C, then any downward link from node A to node C is removed. Thus, node 800 c is not downward linked to node 800 a .

FIG. 9 illustrates a final embodiment of the initial groups lattice. FIG. 8 is transformed to FIG. 9 by propagating broker sets along downward links. Nodes with equal broker sets are then combined, and finally, the exclusive probabilities of each remaining node are computed as depicted in FIG. 11 .

FIG. 10 shows one embodiment of an approximate groups table 1000 employed in accordance with the present invention. This table is constructed from the final version of the initial groups lattice. The table starts off with a row per group or node in the initial groups lattice, and then groups are coalesced using the algorithms of this invention. The goal is to produce no more than a user-specified number of groups, while minimizing the cost or penalty associated with coalescing groups. Each row contains Broker Set 1001 (B), which is the set of brokers in the group, the probability 1002 (p) of sending a message to this row, and the weighted cost penalty 1003 (C) of sending a message to this combined group.

FIG. 11 is a flowchart of one embodiment for building the initial groups lattice 900 (FIG. 9) given a set of subscriptions 401 a- 401 e (FIG. 4 ), their brokers 101 (FIG. 1 ), and the event frequencies 501 (FIG. 5 ).

FIG. 12 is a flowchart illustrating one embodiment for building the approximate groups table 1000 , given the initial groups lattice 900 (FIG. 9 ), and a rule for determining the penalty for sending to the union of the broker sets B 1 and B 2 rather than B 1 or B 2 alone.

FIG. 13 shows one embodiment of the steps brokers follow when receiving a message from one of their clients, assuming content-based multicast routing in accordance with the present invention.

›BRIEF DESCRIPTION OF THE DRAWINGS · 2 of 2

FIG. 14 shows one embodiment of the steps brokers follow when receiving a message sent from another broker via an approximate multicast group in accordance with the present invention.

›BEST MODE FOR CARRYING OUT THE INVENTION · 1 of 4

In accordance with the principles of the present invention, a routing capability is provided, which facilitates the forwarding of events to consumers. More particularly, in the context of a content-based publish-subscribe system deployed over a wide area network, such as the Internet, the routing facility presented herein uses subscription sets and event distribution sets to construct a conservative set of approximate Internet protocol (IP) multicast groups to meet specified tolerances for a maximum number of groups or a maximum percentage of wasted messages. Advantages are realized in using the approximate groups approach described herein over other known approaches, and optimizations are described herein for enhancing efficiency of the construction of these approximate groups.

In an arbitrary collection of content-based subscriptions, even with a small number N of subscribers, there are 2 to the power N possible multicast groups. Even for a small N, installing this number of groups soon becomes impractical. On the other extreme, broadcasting messages to all subscribers when most subscribers may wish to receive only a small fraction of the messages wastes bandwidth. Therefore, a solution involving a smaller number of “approximate groups” is desired. The construction of an optimal set of approximate groups to minimize the likelihood of wasted messages for a set of groups of a given size is a computationally intractable problem, and therefore, a more computationally efficient solution approximating this optimal set is desired. The present invention is directed to meeting this need.

More particularly, the present invention comprises an algorithm that ascertains as input (1) a set of subscriptions expressed as conjunctions of equality tests on event attributes, and a destination IP address per subscription; (2) a frequency distribution of the possible values of each event attribute; (3) a tolerance restriction specifying either (a) a maximum number of approximate groups to be generated or (b) a maximum tolerated expected value of the number of wasted messages delivered per message published. The approach described herein produces as output a set of multicast groups each having one or more destination IP address(es); and (4) a cost function specifying the penalty associated with merging a given pair of groups.

By way of example, approximate group construction and use is described below with reference to FIGS. 1-14 of this application. Note, however, that the multicast routing facility described herein may be used in various computing systems. Certain systems are described in greater detail in the above-incorporated, co-pending patent application entitled “Method And System For Matching Consumers To Events.”

FIG. 1 depicts one such example of a computing environment for deployment of a routing facility in accordance with the present invention. In this environment, a collection of brokers 101 a - 101 i are connected to an Internet protocol-based network, such as the Internet. As shown in FIG. 2, each broker 101 is assumed to have a number of clients, which are either applications running directly on the broker or more usually, applications running on client machines attached to the broker. In FIG. 2, broker 101 a has clients 201 a, 201 b, 201 c, 201 d & 201 e. Clients 201 can publish messages, whose content has been defined as pairs of attributes (such as x, y and z) and values. Clients can also issue subscriptions, such as subscriptions 301 a, 301 b, 301 c for client 201 as depicted in FIG. 3 . Subscriptions are predicates on the attributes, such as y=1 and z>5. The set of subscriptions is assumed to change slowly relative to the frequency with which events are published. Subscriptions represent requests for the system to deliver event messages whose attribute values satisfy the predicate.

Brokers maintain tables 401 a- 401 e, as shown in the example of FIG. 4, which record the subscriptions of all the clients they serve. Brokers use these tables when an event is received to determine which clients should receive the event.

A routing facility in accordance with the present invention advantageously exploits the fact that the relative probabilities for the values of each attribute can be periodically measured or estimated and stored into an event frequency table 501 such as depicted in FIG. 5 . Each row of the table corresponds to a particular attribute that may appear in events to be published, while the columns indicate the probability of finding the cited value or range of values for that attribute. The table is used to compute the probability of particular subscription predicates'being satisfied. Assuming that the attributes are independent (or uncorrelated), the table is sufficient to compute a probability for any possible subscription predicate. If the attributes are not independent, appropriate adjustments are required so the table can be used to compute the needed probabilities as will be understood by one skilled in the art.

Generally stated, in accordance with the present invention, an initial set of groups 900 (FIG. 9) is built, and then collapsed into a smaller list of groups 1000 (FIG. 10) of approximate groups. One IP multicast group then corresponds to or is defined by each of the approximate groups in the collapsed list 1000 of FIG. 10 . Each receiving broker listens for messages sent to any of the groups of which it is a member. Each sending broker will match events to one of the initial groups (e.g., using techniques from the above-incorporated United States patent application entitled “Method And System For Matching Consumers To Events”) and then send the event message to the approximate group to which that initial group has been coalesced.

FIGS. 6-8 depict intermediate steps in the construction of an initial groups lattice, such as lattice 900 depicted in FIG. 9 . In the example presented herein, construction of the initial groups lattice employs as input the set of subscription predicates, the broker to which each subscription is attached, and the event frequency table 501 of FIG. 5 . For each subscription in each broker subscription table (e.g., 401 a- 401 e ), a node in the initial groups lattice is created. Each node 600 includes, for example, a broker set 601 specifying the set of brokers in the group, a set of predicates 602 constituting the set of possible events which will be forwarded to these brokers, a total probability 603 which is the probability of a given event satisfying the list of predicates, and an exclusive probability 604 , which is the total probability less the probability that a more refined predicate is satisfied. For example, node 600 a represents a subscription at a broker “a” with predicate x=1 and z=1, and this predicate is satisfied with probability 0.020. The exclusive probability for all nodes is initially set to 0.

›BEST MODE FOR CARRYING OUT THE INVENTION · 2 of 4

If the predicates associated with a pair of nodes are partially overlapping, then a new node is added to the lattice as shown in FIG. 7, i.e., if it does not already exist. By way of example, the predicates of nodes 700 a and 700 b match a common subset of events with predicate x=1 & y=2 & z=1. Thus node 700 d is created with a combined broker set of 700 a and 700 b (i.e., {a,b}), the common predicate (i.e., x=1 & y=2 & z=1), and combined probability determined from the event frequency table 501 (i.e., 0.2×0.1×0.1=0.002). The exclusive probability remains 0 . Nodes 700 b and 700 c are similarly combined to form node 700 e . This step of adding new nodes is repeated until there are no further pairs of nodes that partially overlap.

FIG. 8 illustrates a next step in the construction of the initial group lattice 900 of FIG. 9. A node A is “downward linked” to a node B if the predicate in A is a superset of the predicate in B. For example, node 800 b is downward linked to node 800 a because any event which matches the predicate x=1 & y=2 & z=5 will also match the predicate z=5. Similarly, node 800 c is downward linked to node 800 b . Transitive downward links are removed. For this example, if node A is downward linked to node B, and node B is downward linked to node C, then any downward link from node A to node C is removed. Thus, node 800 c is not downward linked to node 800 a.

FIG. 8 is transformed to FIG. 9 by propagating broker sets along downward links. Then nodes with equal broker sets are combined. Finally, the exclusive probabilities of each remaining node are computed as described below in connection with FIG. 11 . Once the initial group lattice in final form is obtained, the nodes are used to create a list of groups as depicted in FIG. 10 . In accordance with the present invention, this list of groups is next condensed into a smaller list of groups which comprise the IP multicast groups. The smaller list of approximate groups can be attained as described in FIG. 11 . The goal of the present invention is to produce no more than a user-specified number of groups, and in so doing, minimize the cost or penalties associated with coalescing the groups. Each row of the resultant table contains a broker set 1001 ( b ), which comprises the set of brokers in the group, a probability 1002 ( p ) of sending a message to this row, and the weighted cost penalty 1003 ( C ) of sending a message to this combined group. Detailed embodiments for constructing the initial groups lattice and the approximate groups table are presented in FIGS. 11 & 12, respectively.

The process of FIG. 11 is performed when an initial set of subscriptions is obtained, and can be rerun whenever these subscriptions change. However, one skilled in the art will be able to infer how to speed up the process of FIG. 11 so that it could be run incrementally rather than being rerun from scratch whenever a change is small.

The process begins by building a node 600 (FIG. 6) for each subscription predicate 1101 . In one embodiment, the node has three fields: a broker set 601 , which includes: a broker or brokers to which the client making a subscription that predicate was attached; a predicate list 602 containing the subscription predicate(s), and a probability computed by applying the event frequency table 501 (FIG. 5 ). For example, the brokers 101 b and 101 c each have a subscription x=1 & y=2, then a node is created having broker set {b,c}, predicate set “x=1, y=2”, and probability 0.020 (multiplying the independent probabilities0.2 for x=1 and 0.1 for y=2 obtained from the event frequency table 501 .

Optionally, the size of this structure may be pruned by approximating the subscriptions by deleting less frequently tested attributes.

Next, a “closure” is built 1102 by doing the following: whenever two nodes exist whose subscription predicates overlap partially, a new node 700 (FIG. 7) is built in which the predicate 602 is the conjunction of the two predicates, the broker set 601 is the union of the two broker sets, and the probability is the probability of the conjunction. For example, node 700 d of FIG.7 is built from nodes 700 a and 700 b in this way. Step 1102 is repeated as many times as needed until no new nodes can be created.

The resulting nodes are next sorted into a mathematical semilattice 1103 . A node is considered to be “below” another node if its predicate is strictly implied by the predicate of the upper node. Note that transitive links are removed. For example, node 800 a and node 800 c of FIG. 8 are not linked because they are already transitively linked through node 800 b.

Thereafter, broker information is propagated upward in the semilattice 1104 . Any broker appearing in a broker set inserted into the broker sets of any nodes higher in the semilattice. If this causes two nodes to have the same broker set, those nodes are coalesced into a single node containing the given broker set, the union of the predicates, and the sum of the probabilities.

Finally, the exclusive probabilities 604 (FIG. 6) are computed 1105 . For a node with no higher nodes in the lattice, the exclusive probability is simply the total probability. For example, node 900 a (FIG. 9) has no higher node, so its exclusive probability is equal to the total probability, 0.003. For other nodes, the exclusive probability equals the total probability minus the sum of the exclusive probabilities of the nodes above it. For example, node 900 b has a total probability of 0.020; that is, the probability of the predicate associated with it. But node 900 a is above it; and events matching that more refined predicate will be sent to a larger group. Therefore, the probability of an event matching 900 b but nothing above it is 0.020-0.003, or 0.017.

After completing the process of FIG. 11, there exists a node for every possible distinct group of brokers consistent with a set of subscriptions, together with a probability that an event will go to exactly that set of brokers. FIG. 12 uses this information to build a collapsed set of approximate groups, referred to herein as the approximate groups table.

›BEST MODE FOR CARRYING OUT THE INVENTION · 3 of 4

As noted, the process of FIG. 12 converts the initial groups lattice 900 into a sorted table called an approximate groups table 1000 , and then coalesces rows in this table until, for example, the number of rows is no larger than maximum desired number of groups specified as a system parameter.

The initial value of the approximate groups table are initially built 1201 from the initial groups lattice 900 (FIG. 9 ). One row is created for each node in the lattice. There are three entries: a Broker Set 1001 (called B) (FIG. 10 ), which is obtained from the broker set 601 (FIG. 6) of the lattice node; a probability 1002 (called p), which is obtained from the exclusive probability 604 of the lattice node; and a cost or penalty 1003 (called C), which is the expected amount of waste due to the approximation, and which is initially set to 0 since no groups have been coalesced yet. After building the table 1000 , the table is sorted in increasing order of key p; the secondary key is the size of the broker set in decreasing order. This sorting is done as a heuristic to prune the search for the optimal pair. Otherwise, the number of tests at each step would be equal to the square of an already large number.

Assuming that the number of groups is greater than the desired number or groups 1202 , the processing of step 1204 is performed repeatedly until the number of groups is as small as the desired number, at which point processing is done 1203 . In step 1204 , we look for a pair of rows i and j to coalesce. If the heuristic is used, we will only look at combinations of the first N rows for some heuristically determined N. For each pair, a penalty C′ (i,j) associated with the coalesced group is computed:

C′ ( i,j )=( p i /( p i +p j )) ( C i +C ( B i ,B j ))+( p j /( p i +p j )) ( C j +C ( B j ,B i ))

This formula uses a penalty function C(B i ,B j ) which may be supplied by the system designer. This function is to be interpreted as the cost of sending a message to nodes in B i ∪B i when it really should go only to the nodes in B i . If link traffic is neglected, then this value can be approximated by |B j −B i |, the number of brokers in B j but not B i . If link traffic is counted (assuming a particular location for the publisher or a distribution of locations for the publishers), then a different function may be used for C(B i ,B j ) that takes into account the network topology. Note that the concepts of the present invention can be readily adapted for use with different penalty functions.

Once C′ (i,j) is known, the net waste induced NWI(i,j) can be computed as follows:

NWI ( i,j )=( p i +p j ) C′ ( i,j )− p i C i −p j C j .

The pair i,j yielding the smallest NWI(i,j) is selected for coalescing. The fact of the coalescence is recorded into lattice 900 (FIG. 9 ), and the two rows of table 1000 (FIG. 10) are replaced by the single row with node set B=B i ∪B j , probability p =p i +p j , and cost C′ (i,j)

After the table 1000 has been collapsed, each group in the table is assigned an IP multicast address.

FIG. 13 depicts a process flow followed by a broker when receiving a message from one of its clients, while FIG. 14 depicts a process followed by a broker when receiving a message sent from another broker via a multicast group. These processes assume that the approximate groups table has already been derived.

Referring first to FIG. 13, each broker attached to a publisher client receives the published message 1301 . The received message is matched 1302 to a set of destinations using a content-based algorithm, such as the one described in the above-incorporated patent application entitled “Method And System For Matching Consumers To Events”. If certain attributes were ignored in computing the approximate groups, then those same attributes are ignored in performing the matching. During this process, the message will be matched against subscriptions from local clients (that is, clients on the given broker), and against subscriptions from non-local clients to determine a set of local clients, and a set of destination brokers. This set of destination brokers corresponds to one of the original groups. The message is then forwarded to the set of local clients, and also to the approximate IP multicast group to which the original group was coalesced 1303 . All the destination brokers listen for all IP multicast groups of which they are a member. As shown in FIG. 14, each destination broker will receive a message 1401 and simply forward it to those of its clients whose subscriptions match 1402 . Because the groups are approximate, it is possible that a destination broker will receive a message that does not match the subscriptions of any of its clients.

Those skilled in the art will note from the above discussion that a multicast routing technique is provided herein wherein a large number of groups can be collapsed to a smaller number of groups, while approximately minimizing any expected penalty. Dynamic information about the existing set of subscriptions and the expected probabilities of different events is employed in order to perform this collapse.

The present invention can be included in an article of manufacture (e.g., one or more computer program products) having, for instance, computer usable media. The media has embodied therein, for instance, computer readable program code means for providing and facilitating the capabilities of the present invention. The article of manufacture can be included as a part of a computer system or sold separately.

Additionally, at least one program storage device readable by a machine, tangibly embodying at least one program of instructions executable by the machine to perform the capabilities of the present invention can be provided.

The flow diagrams depicted herein are just examples. There may be many variations to these diagrams or the steps (or operations) described therein without departing from the spirit of the invention. For instance, the steps may be performed in a differing order, or steps may be added, deleted or modified. All of these variations are considered a part of the claimed invention.

›BEST MODE FOR CARRYING OUT THE INVENTION · 4 of 4

Although preferred embodiments have been depicted and described in detail herein, it will be apparent to those skilled in the relevant art that various modifications, additions, substitutions and the like can be made without departing from the spirit of the invention and these are therefore considered to be within the scope of the invention as defined in the following claims.

Claims as granted

57 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

7 codes
IPC · International Patent Classification
Section H — Electricity
  • H04L12/18
  • H04L29/06
  • H04L29/08
USPC · US Patent Classification
707/10725/35707/100725/34

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomJan 2000Jul 2000Jan 2001Jul 2001Jan 2002Jul 2002Jan 2003Jul 2003Jan 2004Jul 2004USPTOApplicantNon-final rejectionFinal rejectionNon-final rejectionNon-final rejectionFinal rejection
USPTOApplicanthover for detail · click to open
Pendency
4.1 y
1,489 days filing → grant
Office actions
5
non-final + final
Responses
5
no RCE
Examiner
Wayne Amsbury
art unit 2171 · TC 2100
Citations: 44 back · 45 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20002002200420062008201020122014201620182020Owner 1Owner 2Owner 3
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock