Supporting Disconnected Operations in Publish/Subscribe Systems Vinod Muthusamy Joint work with Milenko Petrovic, Ioana Burcea, H.-Arno Jacobsen, Eyal.

Slides:



Advertisements
Similar presentations
Dissemination-based Data Delivery Using Broadcast Disks.
Advertisements

Communications Research Centre (CRC) Defence R&D Canada – Ottawa 1 Properties of Mobile Tactical Radio Networks on VHF Bands Li Li & Phil Vigneron Communications.
Efficient Event-based Resource Discovery Wei Yan*, Songlin Hu*, Vinod Muthusamy +, Hans-Arno Jacobsen +, Li Zha* * Chinese Academy of Sciences, Beijing.
Alex Cheung and Hans-Arno Jacobsen August, 14 th 2009 MIDDLEWARE SYSTEMS RESEARCH GROUP.
Management of Uncertainty in Publish/Subscribe Systems Haifeng Liu Department of Computer Sceince University of Toronto.
Generated Waypoint Efficiency: The efficiency considered here is defined as follows: As can be seen from the graph, for the obstruction radius values (200,
Small-Scale Peer-to-Peer Publish/Subscribe
Multi-Variate Analysis of Mobility Models for Network Protocol Performance Evaluation Carey Williamson Nayden Markatchev
Transactional Mobility in Distributed Content-Based Publish/Subscribe Systems Songlin Hu*, Vinod Muthusamy +, Guoli Li +, Hans-Arno Jacobsen + * Chinese.
SCAN: A Dynamic, Scalable, and Efficient Content Distribution Network Yan Chen, Randy H. Katz, John D. Kubiatowicz {yanchen, randy,
Subscription Subsumption Evaluation for Content-Based Publish/Subscribe Systems Hojjat Jafarpour, Bijit Hore, Sharad Mehrotra, and Nalini Venkatasubramanian.
Distributed Mobile Event Systems Sasu Tarkoma MiNEMA Workshop.
Applications over P2P Structured Overlays Antonino Virgillito.
©NEC Laboratories America 1 Hui Zhang Samrat Ganguly Sudeept Bhatnagar Rauf Izmailov NEC Labs America Abhishek Sharma University of Southern California.
M ERCURY : A Scalable Publish-Subscribe System for Internet Games Ashwin R. Bharambe, Sanjay Rao & Srinivasan Seshan Carnegie Mellon University.
Beneficial Caching in Mobile Ad Hoc Networks Bin Tang, Samir Das, Himanshu Gupta Computer Science Department Stony Brook University.
Matching Patterns Servers assemble sequences of notifications from smaller subsequences or from single notifications.This technique requires an advertisement.
Minema 1 From chemical signals to event dissemination in a mobile system EPFL Distributed Programming Laboratory Sébastien Baehni, Chirdeep S. Chhabra,
Decentralized resource management for a distributed continuous media server Cyrus Shahabi and Farnoush Banaei-Kashani IEEE Transactions on Parallel and.
Design and Evaluation of a Wide-Area Event Notification Service Antonio Carzaniga David S. Rosenblum Alexander L. Wolf.
1 AINA 2006 Wien, April th 2006 DiVES: A DISTRIBUTED SUPPORT FOR NETWORKED VIRTUAL ENVIRONMENTS The IEEE 20th International Conference on Advanced.
ICNP'061 Benefit-based Data Caching in Ad Hoc Networks Bin Tang, Himanshu Gupta and Samir Das Department of Computer Science Stony Brook University.
Minimum Maximum Degree Publish-Subscribe Overlay Network Design Melih Onus TOBB Ekonomi ve Teknoloji Üniversitesi, 28 Mayıs 2009.
Darmstadt University of Technology CoopIS 2001, TrentoGero Mühl Generic Constraints for Content-Based Publish/Subscribe Gero Mühl PhD Program “Enabling.
Hermes: A Distributed Event- Based Middleware Architecture Peter Pietzuch and Jean Bacon 1st DEBS Workshop, Vienna,
Component-Based Routing for Mobile Ad Hoc Networks Chunyue Liu, Tarek Saadawi & Myung Lee CUNY, City College.
Fuego Event Service: Towards Modularity in Event Routing Sasu Tarkoma Rutgers-Helsinki Workshop
Background Notification services in LAN Provides Notification Selection Notification Delivery Done on a centralized server (hence not scalable) Challenge.
Distributed Publish/Subscribe Network Presented by: Yu-Ling Chang.
UNCLASSIFIED – APPROVED FOR PUBLIC RELEASEUNCLASSIFIED Architectures for Mobile Wireless Publish/Subscribe Networks David S. Rosenblum Chief Technology.
By Ravi Shankar Dubasi Sivani Kavuri A Popularity-Based Prediction Model for Web Prefetching.
Alex King Yeung Cheung and Hans-Arno Jacobsen University of Toronto June, 24 th 2010 ICDCS 2010 MIDDLEWARE SYSTEMS RESEARCH GROUP.
Effects of Routing Computations in Content-Based Routing Networks with Mobile Data Sources Vinod Muthusamy, Milenko Petrovic, Hans-Arno Jacobsen University.
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.
UbiStore: Ubiquitous and Opportunistic Backup Architecture. Feiselia Tan, Sebastien Ardon, Max Ott Presented by: Zainab Aljazzaf.
Content-Based Routing in Mobile Ad Hoc Networks Milenko Petrovic, Vinod Muthusamy, Hans-Arno Jacobsen University of Toronto July 18, 2005 MobiQuitous 2005.
Energy-Aware Scheduling with Quality of Surveillance Guarantee in Wireless Sensor Networks Jaehoon Jeong, Sarah Sharafkandi and David H.C. Du Dept. of.
Workshop on Middleware for Pervasive and Ad-Hoc Computing Toronto, Canada, October 2004 A Message-Oriented Middleware for Sensor Networks Eduardo Souto,
DISTRIBUTED EVENT AGGREGATION FOR CONTENT-BASED PUBLISH/SUBSCRIBE SYSTEMS Navneet Kumar Pandey 1 Stéphane Weiss 1 Roman Vitenberg 1 Kaiwen Zhang 2 Hans-Arno.
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.
SRL: A Bidirectional Abstraction for Unidirectional Ad Hoc Networks. Venugopalan Ramasubramanian Ranveer Chandra Daniel Mosse.
MIDDLEWARE SYSTEMS RESEARCH GROUP Adaptive Content-based Routing In General Overlay Topologies Guoli Li, Vinod Muthusamy Hans-Arno Jacobsen Middleware.
BARD / April BARD: Bayesian-Assisted Resource Discovery Fred Stann (USC/ISI) Joint Work With John Heidemann (USC/ISI) April 9, 2004.
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.
VLDB2005 CMS-ToPSS: Efficient Dissemination of RSS Documents Milenko Petrovic Haifeng Liu Hans-Arno Jacobsen University of Toronto.
Analysis and algorithms of the construction of the minimum cost content-based publish/subscribe overlay Yaxiong Zhao and Jie Wu
Slide #1 Performance Evaluation of Routing Protocol for Low Power and Lossy Networks (RPL) draft-tripathi-roll-rpl-simulation-04 IETF Virtual Interim WG.
Information-Centric Networks10b-1 Week 10 / Paper 2 Hermes: a distributed event-based middleware architecture –P.R. Pietzuch, J.M. Bacon –ICDCS 2002 Workshops.
Peter R Pietzuch and Jean Bacon Peer-to-Peer Overlay Networks in an Event-Based Middleware DEBS’03, San Diego, CA, USA,
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.
Ad Hoc On-Demand Distance Vector Routing (AODV) ietf
Performance Comparison of Ad Hoc Network Routing Protocols Presented by Venkata Suresh Tamminiedi Computer Science Department Georgia State University.
Congestion Avoidance with Incremental Filter Aggregation in Content-Based Routing Networks Mingwen Chen 1, Songlin Hu 1, Vinod Muthusamy 2, Hans-Arno Jacobsen.
Meier, R. Cahill, V. Distributed Systems Group, School of Computer Science and Statistics, Trinity College Dublin, Ireland RTLab. Seolyoung,
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.
GeoTORA: A Protocol for Geocasting in Mobile Ad Hoc Networks
Navneet Kumar Pandey1 Stéphane Weiss1 Roman Vitenberg1
Project Demo Mehdi Sadri Jamshid Esmaelnezhad Spring 2012
Distributed Publish/Subscribe Network
Composite Subscriptions in Content-based Pub/Sub Systems
Small-Scale Peer-to-Peer Publish/Subscribe
Storing and Replication in Topic-Based Pub/Sub Networks
SIENA: Wide-Area Event Notification Service
Presentation transcript:

Supporting Disconnected Operations in Publish/Subscribe Systems Vinod Muthusamy Joint work with Milenko Petrovic, Ioana Burcea, H.-Arno Jacobsen, Eyal de Lara University of Toronto 2004 IEEE International Conference on Mobile Data Management

Agenda Part I – Publish/Subscribe –Centralized/distributed models –Benefits –Applications Part II – Mobile Publish/Subscribe –Disconnected operation in distributed publish/subscribe systems Motivation and Problem Solutions –Evaluation Factors Results Conclusions

The Publish/Subscribe Model Broker 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

Distributed Publish/Subscribe Hierarchy of brokers [Siena, JEDI] Subscriptions to root Publications to root and multicast down to interested subscribers Broker stocks/ibm/* stocks/* Publisher Broker stocks/oracle Broker

Publish/Subscribe Benefits Simple interface Decoupling of producers and consumers of data –Address Content-based routing Anonymity –Platform –Space –Time –Representation (semantic) Efficient data dissemination (scalability) –Push model –Multicast

Publish/Subscribe Applications News dissemination Location based services Workflow management E-commerce Auctions Distributed gaming Software updates delivery Sensor networks Existing systems –Research: ToPSS, Siena, JEDI, Gryphon, Hermes –Industry: IBM, Precache, TIBCO, Talarian

Part II How does disconnected operation work in distributed publish/subscribe systems? Why is disconnected operation a problem? What are some solutions? How do these solutions perform?

Disconnected Operation: Motivation User’s laptop connected at work Disconnect at the end of the day Reconnect at home Events published while a subscriber is disconnected should be stored somewhere and replayed upon reconnection Broker Subscriber

Disconnected Operation [JEDI] Subscriber receives publications Subscriber disconnects Broker stores publications Subscriber connects Transfer state to new broker & replay old publications New publications go directly to subscriber Broker Publisher Subscriber t1t1 At Old Broker t2t2 DisconnectedAt New Broker t4t4 t3t3 Receive new events Connect (movein) Disconnect (moveout)

Disconnected Operation [JEDI] Subscriber receives publications Subscriber disconnects Broker stores publications Subscriber connects Transfer state to new broker & replay old publications New publications go directly to subscriber Broker Publisher Subscriber t1t1 At Old Broker t2t2 DisconnectedAt New Broker t4t4 t3t3 Receive new events Connect (movein) Disconnect (moveout)

Disconnected Operation [JEDI] Subscriber receives publications Subscriber disconnects Broker stores publications Subscriber connects Transfer state to new broker & replay old publications New publications go directly to subscriber Broker Publisher Subscriber moveout t1t1 At Old Broker t2t2 DisconnectedAt New Broker t4t4 t3t3 Receive new events Connect (movein) Disconnect (moveout)

Disconnected Operation [JEDI] Subscriber receives publications Subscriber disconnects Broker stores publications Subscriber connects Transfer state to new broker & replay old publications New publications go directly to subscriber Broker Publisher Subscriber t1t1 At Old Broker t2t2 DisconnectedAt New Broker t4t4 t3t3 Receive new events Connect (movein) Disconnect (moveout)

Disconnected Operation [JEDI] Subscriber receives publications Subscriber disconnects Broker stores publications Subscriber connects Transfer state to new broker & replay old publications New publications go directly to subscriber Broker Publisher movein t1t1 At Old Broker t2t2 DisconnectedAt New Broker t4t4 t3t3 Receive new events Connect (movein) Disconnect (moveout)

Disconnected Operation [JEDI] Subscriber receives publications Subscriber disconnects Broker stores publications Subscriber connects Transfer state to new broker & replay old publications New publications go directly to subscriber Broker Publisher t1t1 At Old Broker t2t2 DisconnectedAt New Broker t4t4 t3t3 Receive new events Connect (movein) Disconnect (moveout)

Disconnected Operation [JEDI] Subscriber receives publications Subscriber disconnects Broker stores publications Subscriber connects Transfer state to new broker & replay old publications New publications go directly to subscriber Broker Publisher t1t1 At Old Broker t2t2 DisconnectedAt New Broker t4t4 t3t3 Receive new events Connect (movein) Disconnect (moveout)

Problem: Unicast State Transfer Broker  Publish/subscribe is efficient [multicast]  State transfer is inefficient [unicast]  What’s the bandwidth overhead of unicast state transfer? Broker

State Transfer Optimizations: Prefetching Eagerly migrate state while the user is disconnected Exploits knowledge of future mobility patterns Shortens perceived length of disconnection to the system Less state to transfer State transfer period hidden from user Broker moveout t1t1 At Old Broker t2t2 DisconnectedAt New Broker t4t4 t3t3 Receive new events Connect (movein) tptp Disconnect (moveout)

State Transfer Optimizations: Logging Brokers cache recent publications Exploits locality Only partial state transfer needed if locality exists Overhead could be worse if no locality exists Requires cache space at brokers Broker

State Transfer Optimizations: Home-Broker Mobile client logically reconnects to “home” broker Eliminates state transfer overhead Increases perceived disconnection period –Unicast transfer even when connected movein Broker

Evaluation: Factors Affecting Mobility Network  Bandwidth and latency of links  Broker placement  Broker topology  Number of brokers Mobility  Connection and disconnection periods  Predictive or repetitive mobility  Group mobility Application  No. of publishers and subscribers  Publication rate  Subscription specificity  Subscription (interest) locality  Message size

Evaluation: Setup Simulation Environment –NS2 network simulator –Implemented state transfer optimizations Parameters –Topology Metropolitan Area Network 4 levels of degree 4  64 leaf brokers –Subscribers: 200, 400, 600, 800 –Publishers: 100 –Locality: random, 30%, 60%, 90% Metric –Total message traffic –State transfer overhead (unicast/multicast) 64 1

Commute Scenario Simulate evening commute home –Subscribers work downtown (20 inner brokers) –Start commute between 4:00 pm and 6:00 pm –40% live in city center (30 inner brokers) Take 15 min to 45 min to commute –60% live in outskirts (34 outer brokers) Take 45 min to 90 min to commute Few total disconnections Long disconnection periods Downtown City center Outskirts 164

Commute Scenario: Average Overhead Standard: almost 100% overhead Logging: Slight improvement Prefetching: negligible overhead Home broker: poor due to sustained unicast Peak overhead results –Up to 3x for Standard –Up to 27x for Home-broker

Commute Scenario: Total Message Cost 800 subscribers Same relative performance Message cost tracks # of state transfers Home-broker overhead even after reconnection Max 10% concurrent state transfers

Random Scenario More ad-hoc mobility –Subscriber starts at random broker –Disconnects for 10 min to 30 min –Walk (5 km/h), city driving (50 km/h), highway driving (100 km/h) –Reconnects to a random broker within range –Remains connected for 10 min to 30 min –(repeat) More disconnections Shorter disconnection periods

Random Scenario: Average Overhead Standard: 100% overhead Prefetching overhead now noticeable –Due to shorter disconnections Logging diverges more from Standard –Due to hidden increase in locality with population –Due to more disconnections

Random Scenario: Effect of Locality 800 subscribers Adjust subscription locality by varying % of subscribers with identical subscriptions Logging can approach “ideal” Prefetching Others’ increasing overhead is due to decreasing multicast, and constant unicast

Random Scenario: Effect of Log Size For Logging approach Log size 0, 400, 800, 1200 events Diminishing returns of increasing log size

Pervasive Scenario Persistent connectivity –Similar mobility patterns as Random scenario –Disconnections are few seconds long E.g. Cellular handoffs between cells Many disconnections Short disconnection periods

Pervasive Scenario: Average Overhead Event migration is small portion of state transfer overhead Similar overhead (except home- broker) –Due to very short disconnec- tions

Conclusions The publish/subscribe model lends itself well to mobile applications Mobility can break a distributed pub/sub system –Network overhead can double with only 10% concurrent movein’s –Stored events typically dominate overhead, not subscriptions –With sufficient locality, Logging approaches Prefetching Future Work –Other scenarios: realistic traces, mobile publishers –Investigate effects of state transfer traffic on latency –Develop more state transfer optimizations Multicast state transfer Logging at intermediate brokers Smarter cache replacement policies

Thank You

Pub/Sub Optimizations Broker  Reduce subscription traffic Broker Covering stocks/ibm/*stocks/* Broker  Reduce publication traffic to the root Broker Advertisements stocks/* Publisher  Subscriptions  Advertisements  Publications Broker

Covering and Advertisements Our scenarios did not benefit significantly from covering and ads Forwarding of events dominate overhead –98% of overhead in Commute and Random scenarios –Covering only helps to quench subscriptions There is little subscriber locality (in our scenarios) –Most events must propagate to the root broker –Ads only help to quench upstream publications

Toronto Publish/Subscribe System (ToPSS) Research Areas S-ToPSS (semantic) X-ToPSS (semi-structured data; XML) A-ToPSS (approximate) M-ToPSS (mobile) Ad hoc-ToPSS (ad hoc networking) Federated-ToPSS (federation of ToPSS brokers) persistent-ToPSS (Subject Spaces) Rb-ToPSS (rule-based) ToPSS (matching algorithms) L-ToPSS (location-based correlation) p2p-ToPSS (peer-to-peer) ToPSS Information consumers subscribe to information of interest. Information producers publish information. ToPSS-broker(s) match and route relevant information to interested subscribers.