Data-centric Networking Through Adaptive Content-based Routing Hans-Arno Jacobsen Bell University Laboratory Chair Middleware Systems Research Group University.

Slides:



Advertisements
Similar presentations
Efficient Event-based Resource Discovery Wei Yan*, Songlin Hu*, Vinod Muthusamy +, Hans-Arno Jacobsen +, Li Zha* * Chinese Academy of Sciences, Beijing.
Advertisements

Alex Cheung and Hans-Arno Jacobsen August, 14 th 2009 MIDDLEWARE SYSTEMS RESEARCH GROUP.
1 Cycle Detection in Publish/Subscribe Overlay Networks Reza Sherafat Alex Cheung Prof. Cristiana Amza ECE1747 – Course Project University of Toronto.
Management of Uncertainty in Publish/Subscribe Systems Haifeng Liu Department of Computer Sceince University of Toronto.
Partition-Tolerant Distributed Publish/Subscribe Systems
Automating SLA Modelling Tony Chau IBM Toronto & University of Toronto Vinod Muthusamy, Hans-Arno Jacobsen University of Toronto Elena Litani, Allen Chan,
Small-Scale Peer-to-Peer Publish/Subscribe
Transactional Mobility in Distributed Content-Based Publish/Subscribe Systems Songlin Hu*, Vinod Muthusamy +, Guoli Li +, Hans-Arno Jacobsen + * Chinese.
©NEC Laboratories America 1 Hui Zhang Samrat Ganguly Sudeept Bhatnagar Rauf Izmailov NEC Labs America Abhishek Sharma University of Southern California.
Improving Robustness in Distributed Systems Jeremy Russell Software Engineering Honours Project.
Hermes: A Distributed Event- Based Middleware Architecture Peter Pietzuch and Jean Bacon 1st DEBS Workshop, Vienna,
Distributed Publish/Subscribe Network Presented by: Yu-Ling Chang.
IBM Research – Thomas J Watson Research Center | March 2006 © 2006 IBM Corporation Events and workflow – BPM Systems Event Application symposium Parallel.
Effects of Routing Computations in Content-Based Routing Networks with Mobile Data Sources Vinod Muthusamy, Milenko Petrovic, Hans-Arno Jacobsen University.
Word Wide Cache Distributed Caching for the Distributed Enterprise.
SensIT PI Meeting, January 15-17, Self-Organizing Sensor Networks: Efficient Distributed Mechanisms Alvin S. Lim Computer Science and Software Engineering.
Publisher Mobility in Distributed Publish/Subscribe Systems Vinod Muthusamy, Milenko Petrovic, Dapeng Gao, Hans-Arno Jacobsen University of Toronto June.
MIDDLEWARE SYSTEMS RESEARCH GROUP Denial of Service in Content-based Publish/Subscribe Systems M.A.Sc. Candidate: Alex Wun Thesis Supervisor: Hans-Arno.
Gil EinzigerRoy Friedman Computer Science Department Technion.
MIDDLEWARE SYSTEMS RESEARCH GROUP MSRG.ORG Enabling BPM for Clouds Hans-Arno Jacobsen Bell University Laboratory Chair University of Toronto
Supporting Disconnected Operations in Publish/Subscribe Systems Vinod Muthusamy Joint work with Milenko Petrovic, Ioana Burcea, H.-Arno Jacobsen, Eyal.
Content-Based Routing in Mobile Ad Hoc Networks Milenko Petrovic, Vinod Muthusamy, Hans-Arno Jacobsen University of Toronto July 18, 2005 MobiQuitous 2005.
Towards Low Overhead Provenance Tracking in Near Real-Time Stream Filtering Nithya N. Vijayakumar, Beth Plale DDE Lab, Indiana University {nvijayak,
Event Processing with the PADRES Publish/Subscribe System Hans-Arno Jacobsen Bell University Laboratory Chair Middleware Systems Research Group University.
MIDDLEWARE SYSTEMS RESEARCH GROUP Middleware A Policy Management Framework for Content-based Publish/Subscribe Middleware Hans-Arno Jacobsen Department.
EQoSystem: Supporting Fluid Distributed Service- Oriented Workflows Vinod Muthusamy, Young Yoon, Mo Sadoghi, Arno Jacobsen
Events as Enabler for Smarter Systems Hans-Arno Jacobsen University of Toronto MIDDLEWARE SYSTEMS RESEARCH GROUP 1
Dynamic Load Balancing in Distributed Content-based Publish/Subscribe Alex K. Y. Cheung & Hans-Arno Jacobsen University of Toronto November 30 th, 2006.
MIDDLEWARE SYSTEMS RESEARCH GROUP MSRG.ORG Total Order in Content-based Publish/Subscribe Systems Joint work with: Vinod Muthusamy, Hans-Arno Jacobsen.
Distributed Automatic Service Composition in Large-Scale Systems Songlin Hu*, Vinod Muthusamy +, Guoli Li +, Hans-Arno Jacobsen + * Chinese Academy of.
Historic Data Access in Publish/Subscribe Middleware System Research Group University of Toronto.
Flexible Distributed Business Process Management Vinod Muthusamy University of Toronto Thesis Defense September 23, 2011.
SOA-10: Event-Driven SOA: EDA in an SOA World Ken Wilner Vice President of Technology.
Parallel Event Processing for Content-Based Publish/Subscribe Systems Amer Farroukh Department of Electrical and Computer Engineering University of Toronto.
MIDDLEWARE SYSTEMS RESEARCH GROUP Adaptive Content-based Routing In General Overlay Topologies Guoli Li, Vinod Muthusamy Hans-Arno Jacobsen Middleware.
1 Event Processing: An Academic Perspective Hans-Arno Jacobsen Bell University Laboratory Chair Middleware Systems Research Group University of Toronto.
Minimal Broker Overlay Design for Content-Based Publish/Subscribe Systems Naweed Tajuddin Balasubramaneyam Maniymaran Hans-Arno Jacobsen University of.
ICDCS Beijing China Routing of XML and XPath Queries in Data Dissemination Networks Guoli Li, Shuang Hou Hans-Arno Jacobsen Middleware Systems Research.
Data-centric Networking Through Adaptive Content-based Routing Hans-Arno Jacobsen Bell University Laboratory Chair Middleware Systems Research Group University.
Information-Centric Networks10b-1 Week 10 / Paper 2 Hermes: a distributed event-based middleware architecture –P.R. Pietzuch, J.M. Bacon –ICDCS 2002 Workshops.
Peer-to-Peer Result Dissemination in High-Volume Data Filtering Shariq Rizvi and Paul Burstein CS 294-4: Peer-to-Peer Systems.
Information-Centric Networks Section # 10.2: Publish/Subscribe Instructor: George Xylomenos Department: Informatics.
Copyright © Hans-Arno Jacobsen DRDC-UofT Workshop, 2010 Information Infrastructure for Situational Awareness and Systems Integration Hans-Arno Jacobsen.
Peter R Pietzuch and Jean Bacon Peer-to-Peer Overlay Networks in an Event-Based Middleware DEBS’03, San Diego, CA, USA,
Optimizing BPM Through SLAs & Event Monitoring
1 State-of-the-art in Publish/Subscribe Middleware for Supporting Mobility Sumant Tambe EECS Preliminary Examination December 11, 2007 Vanderbilt University,
Distributed Automatic Service Composition in Large-Scale Systems Songlin Hu*, Vinod Muthusamy +, Guoli Li +, Hans-Arno Jacobsen + * Chinese Academy of.
MIDDLEWARE SYSTEMS RESEARCH GROUP MSRG.ORG Distributed Ranked Data Dissemination in Social Networks Joint work with: Mo Sadoghi Vinod Muthusamy Hans-Arno.
Stream SQL, Rules, Subscriptions: It’s All The Same Hans-Arno Jacobsen Bell University Laboratory Chair Middleware Systems Research Group University of.
Congestion Avoidance with Incremental Filter Aggregation in Content-Based Routing Networks Mingwen Chen 1, Songlin Hu 1, Vinod Muthusamy 2, Hans-Arno Jacobsen.
Design of a Notification Engine for Grid Monitoring Events and Prototype Implementation Natascia De Bortoli INFNGRID Technical Board Bologna Feb.
1 Towards Scalable Pub/Sub Systems Shuping Ji 1, Chunyang Ye 2, Jun Wei 1 and Arno Jacobsen 3 1 Chinese Academy of Sciences 2 Hainan University 3 Middleware.
A Framework for Object-Based Event Composition in Distributed Systems
The Client/Server Database Environment
Exploring Azure Event Grid
Navneet Kumar Pandey1 Stéphane Weiss1 Roman Vitenberg1
Enterprise Service Bus (ESB) (Chapter 9)
Inventory of Distributed Computing Concepts
Distributed Publish/Subscribe Network
Siddarth Ganesan, Young Yoon, Hans-Arno Jacobsen
Composite Subscriptions in Content-based Pub/Sub Systems
Foundations for Highly-Available Content-based Publish/Subscribe Overlays Young Yoon, Vinod Muthusamy and Hans-Arno Jacobsen.
Data-Centric Networking
Small-Scale Peer-to-Peer Publish/Subscribe
Automating SLA Modelling
Indirect Communication Paradigms (or Messaging Methods)
Enterprise Integration
Indirect Communication Paradigms (or Messaging Methods)
SIENA: Wide-Area Event Notification Service
Presentation transcript:

Data-centric Networking Through Adaptive Content-based Routing Hans-Arno Jacobsen Bell University Laboratory Chair Middleware Systems Research Group University of Toronto MIDDLEWARE SYSTEMS RESEARCH GROUP University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 Querying the Future

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 Amazon to Chapters to You.... Monday, October 10th in Cyberspace Your book “...” is available at.... $10 off Thursday, November 15th, in Toronto

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 else Business Process Example Check score Credit check Credit check 2 Check score 2 Reject Approve Send to officer Store in DB … … Loan Application Processing

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 Large-scale Business Processes Vendor Sale Manufactory Finance Dispatch B Out-stock B Pick-up goods Packaging Marketing Design Out-stock B Target price Prototype OutTake Control Assign Confirm Determinate plan Check stock Raw materials Audit Raw Determinate plan Execute plan Process control Monitor Process Pay Check Signature Print receipt Warehouse Delivery FedEx Pick up Monitoring Statistic Chart Strategy Design Marketing Order Manufactory Payment Requirement collection Feature selection Goods selection Confirm features Material Make plan Feedback Check order Fill order Check dealerCheck credit Approval Validate Affirm order Sale prediction Sign Contract CCC administrate Goods delivery Fill dispatch bill Fill out-stock bill Credit card

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 What is the Common Denominator? Many applications are driven by asynchronous state transitions.  Something happens, … an appropriate reaction is expected and required. Asynchronous state transitions represent events.  A process is triggered, a request submitted, … Many applications require event management and processing capabilities to run effectively.

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 In Terms of the Examples These applications are driven by events  Information matching the query is found and indexed  Person walks by a bookstore  Loan request is submitted online Abstractly speaking events are disseminated and filtered against queries events queries

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 What Event Processing Support is Required ? De-coupling and loose coupling Fine-grained event filtering In-network event processing Composite event detection Event correlation

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 Many Applications are Event-based A BC D E F RFID and sensor networksService oriented architectures Workflows, business processes and job scheduling Supply chain and logistics Event-Based Light Callback Razor SKU Transform Fault Temperature Invoke Loan Order Delivered In flight Job A done Trigger

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Agenda What is the right abstractions? My point of view The PADRES project Some details & results University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 What Abstractions Do Not Work? Databases  Great for managing historic data  But what about future data Data streams  Great for managing structured streams of tuples  But what about un-structured, multi-typed, sporadic events from many sources Rule-based expert systems  Great for inference and reasoning  But what about managing large numbers of fined-grained filters in distributed envrionments Take this cum gran salis

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 What Abstractions Enable Event Processing? The afore-mentioned points can best be addressed by  The content-based publish/subscribe model  Realized by content-based message routing Events are conveyed as publications. Event listening, filtering and correlating is based on content-based subscriptions managed by the pub/sub system.

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 Publish/Subscribe 101 Not all publish/subscribe is equal Publish/Subscribe models and evolution  Channel-based OMG CORBA Event Service, …  Topic-based WS Notifications, OMG Data Dissemination Service …  Type-based OMG Data Dissemination Service (partially), …  Content-based The PADRES ESB (see below), …  State-based  Subject Spaces

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 Content-based Publish/Subscribe Publisher Subscriber Subscriptions Publications Notification IBM=84 MSFT=27 INTC=19 JNJ=58 ORCL=12 HON=24 AMGN=58 Stock markets NYSE NASDAQ TSX Subscriptions: IBM > 85 ORCL < 10 JNJ > 60 Broker(s)

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 The Content-based Pub/Sub Model Language and data model  Boolean functions over predicates  Subscriptions are conjunctions of predicates  Publications are sets of attribute-value pairs Matching semantic  A subscription matches if all its predicates match Example Tree- structured data Graph- structured data Un-structured data Regular languages Relational model Subscription XPathRDF QueryKeywordsRegular expressions SQL Publication XMLRSS feedsText, documentsSentences over some alphabet DBs, i.e., tables

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 data tuples subscriptions query publication Query and subscription are very similar. Data tuples and publication are very similar. However, the two problem statements are inverse. That’s Like Data Base Querying  !! sets of tuples About past About future sets of tuples

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Content-based Message Routing Event-Based Decoupled Flexible Responsive Content Routing Declarative A1 S2 P1 S1 P2 S2 [class,=,stock],[symbol,=,YHOO],[price,>,20.0] [class,=,stock],[symbol,=,MSFT],[price,>,50.0] [class,=,stock],[symbol,=,YHOO] [class,=,stock],[price,>,40.0] A2 S1 [class, stock],[symbol, YHOO],[price,25.0] [class, stock],[symbol, YHOO],[price,45.0] [class, stock],[symbol, MSFT],[price, 55.0] University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Publication Space weight height Adv: [height > 70],[weight > 25] Sub: [height > 75],[weight > 20] Sub intersecting Adv 2025 weight height Sub: [height > 75],[weight > 20] Pub matching Sub 2032 Pub: [height, 90],[weight, 32] University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 ToPSS - The Toronto Publish/Subscribe System Family [2000 – present] Matching algorithms  Language expressiveness vs. efficient matching Routing protocols  Network architectures & scalability Higher level abstractions  Workflow execution  Monitoring S-ToPSS (semantic) X-ToPSS (XML matching) A-ToPSS (approximate) persistent-ToPSS (subject spaces) L-ToPSS (location-based) ToPSS (matching) M-ToPSS (mobile) Ad hoc-ToPSS (ad hoc networking) Federated-ToPSS (federation of ToPSS brokers) Rb-ToPSS (rule-based) P2P-ToPSS (peer-to-peer) LB-ToPSS (load balancing) FT-ToPSS (fault tolerance) Historic-ToPSS (historic data) CS-ToPSS (composite subs) BPEL-ToPSS (BPEL execution) JS-ToPSS (job scheduling)

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen PADRES Data-centric Event Bus First generation of students, when I looked away   Peng Alex David aRno Eli Serge PADRES is Publish/subscribe Applied to Distributed Resource Scheduling PAdres is Distributed REsource Scheduling Acknowledgements University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February PADRES Architecture

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 PADRES Event Bus Consists of pub/sub message brokers  Content-based publish/subscribe interface  Content-based message routing  Store-and-forward message queuing Comprised of a federation of brokers deployed as overlay Offers a slim client library for applications Soon available under an open (source) license model and as Apache Poloka incubation project

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 B B B S S P B P B input queue output queue dest2 output queue dest3 dest1 dest2 dest3 P S = publisher = subscriber subscriptiondest Matching Engine Routing Table + temperature > 37 dest2 temperature > 40 dest3 Publications temperature = 38temperature = 42temperature = 36 PADRES Event Broker

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Queue Handler Pre Processor Post Processor Forwarder PADRES Broker Matcher Input Queue Output Queues PRT SRT Pub/Sub Messages Event Broker Architecture If sub intersectsSend to [class,=,foo],[attr,>,17]B1 If pub matchesSend to [class,=,foo],[attr,>,20]B2 Adv Sub Pub Sub Pub University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 Innovative PADRES Features A BC D E F Composite Events Historic Access Management Robustness Load Balancing Security

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Limitations of Acyclic Overlays Sensitive to  Congestion  Imbalanced workloads  Broker failures  Overlay changes Broker Publisher Subscriber P University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen PPP P Robust Self-healing Adaptive Flexible Publisher Subscriber Congested Link General Overlay Network University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Challenges with General Overlays Subscriptions route in loops Brokers receive duplicate subscriptions Multiple copies of message maybe created Same problem for publications Adv 1 Adv 2 S X S S University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Number of Redundant Messages University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Content-based Routing in General Overlays Maintain the same interface to pub/sub clients Develop content-based routing protocols for  Advertisement  Subscription  Publication University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Advertisement Routing Each advertisement forms a spanning advertisement tree Duplicate advertisements are discarded by brokers Each advertisement is assigned a unique tree identifier (TID)  e.g., A: [class,=,stock]……[TID,=,adv_msg_id] SRT (Subscription Routing Table)  A set of [advertisement, last hop] pairs University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Subscription Routing I Each subscription is augmented with a TID- predicate with a variable  e.g., S: [class,=,stock] … [TID,=,$X] The variable is bound to the TID of matching advertisements PRT (Publication Routing Table)  A set of [subscription, { (TID, last hop of subscription), … } ] pairs University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen S: [class,=,stock],[name,=,*],[price,>,50], [TID,=,$Z] At Broker 1: Adv1: [class,=,stock],[name,=,IBM], [price,>,60],[TID,=,Adv1] Adv2: [class,=,stock],[name,=,HP], [price,>,50],[TID,=,Adv2] S matching Adv1: [class,=,stock],[name,=,*], [price,>,50],[TID,=,Adv1] S matching Adv2: [class,=,stock],[name,=,*],[price,>,50], [TID,=,Adv2] Subscription Routing II Adv 1 Adv 2 S X S University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Publication Routing Each publication is assigned the TID of its inducing advertisement  e.g., P [class, stock]……[TID, adv_msg_id] Publication routing protocols:  Fixed TID routing: a publication is routed to subscribers along its advertisement tree.  Dynamic publication routing: a publication may be routed to subscribers across branches of different advertisement trees. University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Fixed TID Routing Adv 1 Adv 2 X P Sub P Property 1: No broker receives duplicate publication messages. University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Dynamic Publication Routing Publication’s TID can be changed in transit. ``Best`` path algorithms Property 2: Changing a publication P’s TID while in transit will not change the set of subscribers notified of P Adv 1 Adv 2 X Sub P University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Faster Matching with TIDs Subscriptions are augmented with TIDs only once at the first broker. Other brokers can route the subscription based on the TID alone. Similar argument applies to publication routing. University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Advantages Simple and powerful concept Retain the publish/subscribe client interface Speed up subscription and publication propagation Generate duplicated messages only at advertisement level Build multiple subscription routing paths for publications Route publications dynamically University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 Composite Subscription AND OR S1S2 OR S3S4 AND S5 CS={ {S1 OR S2} AND {S3 OR S4} AND S5 } A composite event is the constellation of events being detected by the composite subscription. S are atomic subscriptions. I.e., they are satisfied by a single, multi-attribute event. Composite subscriptions (CS) are used for event correlation, in network filtering, and the detection of composite events (complex event). Applications: Business process management, Business activity monitoring

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Topology-based CS Routing Adv 1 Adv CS={ {S1 AND S2} AND S3 } CS S2 S3 S1 CS’ Adv 3 University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Adaptive CS Routing CSs may be split according to potential publication traffic, bandwidth, latency etc Adv 1 Adv 2 CS={S1 AND S2} 2 13 Adv 1 Adv 2 CS={S1 AND S2} (a) (b) University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Adaptive CS Routing Adv 1 Adv CS={{S1 AND S2} AND S3} CS S2 S3 S1 Adv 3 5 CS’ University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Evaluation 32 overlay brokers, 20 publishers, 30 subscribers, initially 20 machine vs. PlanetLab Workload   Yahoo!Finance stock quote traces University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Dense Topology University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen On PlanetLab University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Increased Publication Rate University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen With Broker Failures University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Composite Event Detection University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Conclusions The right abstraction for event processing is content-based publish/subscribe. Event processing & publish/subscribe are interesting research areas. ToPSS and PADRES explore many aspects of these areas. University of Oslo, February

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Acknowledgements Graduate students, visitors, and PDFs currently working on PADRES. Alex Cheung Chen Chen Amer Farroukh Patrick Lee Guoli Li Bala Maniymaran Vinod Muthusamy Reza Sherafat Naweed Tajuddin Chunyang Ye Young Yoon Partners from CA Serge Mankovskii & Kirk Wilson Partners from IBM Phil Coultard & Allen Chan Partners from Bell Bell Systems & Technology Plus many PADRES alumni

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 References The PADRES ESB project home  An eQoSystem for declarative distributed applications with SLAs  The Micro-ToPSS event processing middleware for sensor networks  Mobile-ToPSS – publish/subscribe for mobile and location-based applications  ToPSS - the Toronto Publish/Subscribe System Family Portal  (coming soon ) Quantifying events in software to increase modularity & customization in C- based systems and software-based product lines  (ACC - the AspeCt-oriented C compiler) The Middleware Systems Research Group  My web site  the University of Toronto The DEBS Conference July 2009 at Vanderbilt U. Everything events Portal

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 Questions? A D R E S P

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen University of Oslo, February 2009 Benefits of Content-based Publish/Subscribe Simplifies IT development and maintenance by decoupling enterprise components Supports sophisticated interactions among components using expressive subscription languages – going beyond the limits of topics Allows fine-grained queries and event management Achieves scalability with in-network filtering and processing

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Faster Matching with TIDs Subscriptions are augmented with TIDs only once at the first broker. Other brokers can route the subscription based on the TID alone. Similar argument applies to publication routing Adv 1 Adv 2 S X S Adv1 S Adv2 University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Sparser Topology University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Effect of Subscriber Distance DistanceFixed(ms)Dynamic(ms)Improvement 6 Hops % 10 Hops % 12 Hops % Max Diff57.65%27.39% University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen More Publishers University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Publication Burst University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen More Results Faster matching  1926 publications cause times of matching operations in the “Dense Topology” experiment.  About 89% of the matching operations can be saved if we apply the TID-based faster matching. Overhead of dynamic publication routing  Average CPU usage: 6.3% more than the Fixed routing  Average memory usage: 8.9% more than the Fixed routing University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen CS Routing Traffic University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Summary Minimize redundant traffic induced by cycles Improve scalability and robustness of pub/sub systems by offering routing path alternatives Enable flexible composite subscription routing Simplify solutions for failure recovery and load balancing University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Cost Model Routing cost of CS  RC B (CS)) = Σ i T in *|P(CS Bi )| + Σ i T matching *|P(CS Bi )| + Σ i T out_i *|P(CS)| Selection factor (SF)  SF A (S) = |σ S P(A)| / |P(A)|  e.g., SF A (a = v) = 1 / (max - min) Subscription cardinality  |P(S)| = Σ i r i * SF Ai (S) |P(S l )| + |P(S r )| if op = or  |P(CS)| = min (|P(S l )|, |P(S r )|) if op = and Rete input output s University of Oslo, February 2009

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © Hans-Arno Jacobsen Fast Matching 1926 publications cause matching operations in the “Dense Topology” experiment. 89% of the matching operations can be saved with TID-based fast matching. University of Oslo, February 2009