Presentation is loading. Please wait.

Presentation is loading. Please wait.

Collaborative Content Delivery Werner Vogels Robbert van Renesse, Ken Birman Dept. of Computer Science, Cornell University A peer-to-peer solution for.

Similar presentations


Presentation on theme: "Collaborative Content Delivery Werner Vogels Robbert van Renesse, Ken Birman Dept. of Computer Science, Cornell University A peer-to-peer solution for."— Presentation transcript:

1 Collaborative Content Delivery Werner Vogels Robbert van Renesse, Ken Birman Dept. of Computer Science, Cornell University A peer-to-peer solution for web-based publish/subscribe.: DRAFT :.

2 © Copyright 2002 Werner Vogels Presentation duality … The case for Collaborative Content Delivery The case for Collaborative Content Deliveryvs The innovative technology used to build the system The innovative technology used to build the system Spectacularly scalable technology Spectacularly scalable technology Secure, reliable, robust & fast Secure, reliable, robust & fast A solution to many distributed management problems A solution to many distributed management problems

3 © Copyright 2002 Werner Vogels Epidemic Theory of Infectious Diseases and its Applications N.T.J. Bailey Hafner Press Second Edition, 1975 Late night reading

4 © Copyright 2002 Werner Vogels The Problem Access to real-time information at syndicated news sites is highly inefficient Access to real-time information at syndicated news sites is highly inefficient An estimated 70%-80% of the bandwidth is wasted on redundant transport both at the consumer and at the publisher An estimated 70%-80% of the bandwidth is wasted on redundant transport both at the consumer and at the publisher Consumers frequently return to the website to receive timely updates Consumers frequently return to the website to receive timely updates

5 © Copyright 2002 Werner Vogels Isn’t this solved already? RSS – channels provide summaries for processing by bots. RSS – channels provide summaries for processing by bots. But the mechanism remains “pull” But the mechanism remains “pull” HTTP – Delta should reduce bw cost HTTP – Delta should reduce bw cost News feeds from major vendors News feeds from major vendors “push” is the right model for frequently changing data with timely delivery “push” is the right model for frequently changing data with timely delivery Proprietary formats and high fees Proprietary formats and high fees Email summary as cheap alternative Email summary as cheap alternative Still high bandwidth cost at the publisher Still high bandwidth cost at the publisher Hybrid “push/pull” by organizations exploiting distributed content delivery Hybrid “push/pull” by organizations exploiting distributed content delivery

6 © Copyright 2002 Werner Vogels Scale is a major obstacle No coordinated action by syndication sites to provide shared information push infrastructure No coordinated action by syndication sites to provide shared information push infrastructure The one-to-many technologies used currently are inherently not scalable The one-to-many technologies used currently are inherently not scalable No technology is available that can deliver data from thousands publishers to millions of subscribers in real-time. No technology is available that can deliver data from thousands publishers to millions of subscribers in real-time.

7 © Copyright 2002 Werner Vogels We can do better Current push solutions fail to exploit the collaborative power of the Internet Current push solutions fail to exploit the collaborative power of the Internet Ideally the publishers inject one update into the world and all interested subscribers will receive this. Ideally the publishers inject one update into the world and all interested subscribers will receive this. In this model all consumers are collaborating to route the information to right subscribers In this model all consumers are collaborating to route the information to right subscribers The information arrives at all desktops within tens of seconds after publishing The information arrives at all desktops within tens of seconds after publishing

8 © Copyright 2002 Werner Vogels Peer-to-Peer Solution P2P is the only approach to a cost effective, scalable solution P2P is the only approach to a cost effective, scalable solution Subscribers weave an ad-hoc infrastructure for subscription based routing Subscribers weave an ad-hoc infrastructure for subscription based routing Scalable, autonomous & decentralized management Scalable, autonomous & decentralized management High level of robustness and reliability in message delivery High level of robustness and reliability in message delivery Authentication of publishers Authentication of publishers

9 © Copyright 2002 Werner Vogels Emerging technologies Astrolabe, CAN, Cord, Pastry, are emerging research technologies. Astrolabe, CAN, Cord, Pastry, are emerging research technologies. Astrolabe the furthest in Astrolabe the furthest in Scalability Scalability Security integration Security integration Manageable Manageable Firewall, proxy and NAT support Firewall, proxy and NAT support Complete technology that we are now using to develop applications Complete technology that we are now using to develop applications

10 © Copyright 2002 Werner Vogels Astrolabe/Mariner A system for ultra-scalable, distributed state management A system for ultra-scalable, distributed state management Robust, through the use of epidemic techniques Robust, through the use of epidemic techniques Scalable, through the use of information aggregation and fusion Scalable, through the use of information aggregation and fusion Secure, through certificates Secure, through certificates Flexible, through secure mobile code Flexible, through secure mobile code Simulated, Emulated, Tested and Deployed. Simulated, Emulated, Tested and Deployed.

11 Astrolabe Robust and Scalable Technology for Distributed System Monitoring, Management and Data Mining

12 © Copyright 2002 Werner Vogels Distributed Systems Management Is extremely important in the deployment of large systems Is extremely important in the deployment of large systems Scalable management of applications and systems is still a major Quest Scalable management of applications and systems is still a major Quest Management technology needs to be integrated into applications Management technology needs to be integrated into applications The management subsystem is often more complex than the application itself The management subsystem is often more complex than the application itself

13 © Copyright 2002 Werner Vogels Astrolabe Information/state management system Information/state management system Monitors the dynamically changing state of sets of distributed resources Monitors the dynamically changing state of sets of distributed resources Reports summaries to its consumers Reports summaries to its consumers Uses information hierarchies to organize the data Uses information hierarchies to organize the data Uses aggregation techniques to continuously compute the summary nodes in the system Uses aggregation techniques to continuously compute the summary nodes in the system

14 © Copyright 2002 Werner Vogels Current use of Mariner Monitor and control applications, systems and infrastructure Monitor and control applications, systems and infrastructure Resource discovery Resource discovery Collaboration management Collaboration management Coordination of distributed tasks Coordination of distributed tasks Edge-caching control Edge-caching control CDN dynamic management CDN dynamic management

15 © Copyright 2002 Werner Vogels Intuitively You can see mariner as a large database with information about the global system You can see mariner as a large database with information about the global system None of this information resides on a single server None of this information resides on a single server Each principal has a row in the virtual database in which it is allowed to update with pairs. Each principal has a row in the virtual database in which it is allowed to update with pairs. A principal can only directly access the rows of other nodes in its zone and its intermediate nodes in the hierarchy to the root. A principal can only directly access the rows of other nodes in its zone and its intermediate nodes in the hierarchy to the root.

16 © Copyright 2002 Werner Vogels Mariner in a single zone Name1LoadWeblogic?SMTP? Word Version … swift2.0016.2 falcon1.5104.1 cardinal4.5106.0 Lowest level in the hierarchies can be nodes or finer grained if the application requires it Lowest level in the hierarchies can be nodes or finer grained if the application requires it Security key for zone needed to add a new column; user key needed to update row Security key for zone needed to add a new column; user key needed to update row

17 © Copyright 2002 Werner Vogels Scalability through Hierarchy Leafs are organized into zones Leafs are organized into zones Each leaf has a self-managed attribute list Each leaf has a self-managed attribute list The base zone is the collection of individual attribute lists of its leafs The base zone is the collection of individual attribute lists of its leafs Each intermediate zone is the collection of attribute list constructed out of aggregation of the information in its child zones Each intermediate zone is the collection of attribute list constructed out of aggregation of the information in its child zones Each list has some basic attributes, that Mariner uses to manage itself such contact lists, timestamps, etc. Each list has some basic attributes, that Mariner uses to manage itself such contact lists, timestamps, etc.

18 © Copyright 2002 Werner Vogels Simple Hierarchy NameLoadWeblogic?SMTP? Word Version … swift2.0016.2 falcon1.5104.1 cardinal4.5106.0NameLoadWeblogic?SMTP? …gazelle1.7004.5 zebra3.2016.2 gnu.5106.2 Name Avg Load WL contact SMTP contact SF2.6123.45.61.3123.45.61.17 NJ1.8127.16.77.6127.16.77.11 Paris3.114.66.71.814.66.71.12 San Francisco New Jersey

19 © Copyright 2002 Werner Vogels Information Aggregation Aggregation functions are programmable Aggregation functions are programmable Subset of SQL Subset of SQL Code is embedded in aggregation function certificates (AFC) Code is embedded in aggregation function certificates (AFC) Signed certificate is installed into an attribute list Signed certificate is installed into an attribute list Used to construct (new) attributes in zones of the hierarchy Used to construct (new) attributes in zones of the hierarchy

20 © Copyright 2002 Werner Vogels Epidemic Dissemination Each Astrolabe instance maintains all the zones on its path to the root Each Astrolabe instance maintains all the zones on its path to the root No centralized servers for intermediate zones No centralized servers for intermediate zones Consequently each instance has a copy of the root zone Consequently each instance has a copy of the root zone Replication is achieved through gossip techniques. Replication is achieved through gossip techniques. Guarantees eventual consistency Guarantees eventual consistency

21 © Copyright 2002 Werner Vogels AFC propagation 1. Output of the AFC includes a copy of it self – results in a copy of the AFC into the parent zone  Reaches the root and other zone leafs 2. Adoption – check the ancestors lists to find new AFC’s Spreads through the system in the order of tens of seconds. Spreads through the system in the order of tens of seconds. Certificates have an expiration date, unless refreshed aggregation eventually halts Certificates have an expiration date, unless refreshed aggregation eventually halts

22 © Copyright 2002 Werner Vogels I’ll skip Aggregation function details Aggregation function details Mobile code details Mobile code details Eventual consitency Eventual consitency Certificates Certificates Authentication Authentication Firewalls, & nat’s Firewalls, & nat’s

23 © Copyright 2002 Werner Vogels Robustness through Gossip Use of Epidemic Techniques to disseminate data and AFC’s Use of Epidemic Techniques to disseminate data and AFC’s Pure peer-to-peer communication Pure peer-to-peer communication Full autonomous progress Full autonomous progress Actions based on probability theory Actions based on probability theory Robustness improves with scale Robustness improves with scale Fixed low overhead, independent of scale Fixed low overhead, independent of scale Control as well as Data transport Control as well as Data transport

24 © Copyright 2002 Werner Vogels Gossip Conceptually: each zone periodically picks another zone at random and exchanges the state of those zones Conceptually: each zone periodically picks another zone at random and exchanges the state of those zones Slightly more complex because there are virtual zones … Slightly more complex because there are virtual zones …

25 © Copyright 2002 Werner Vogels Gossip target selection AsiaCornellNode1System EuropeMITNode2Inventory USAUSCDNode3Monitor U-WashNode4 1.Each instance update the issued attribute, evaluates depending AFC’s 2.An agent (instance) will gossip on behalf of those zones for which it is a contact, with a rate depending on configuration 3.At each level pick at random a child from the contact list and exchange state

26 © Copyright 2002 Werner Vogels Membership Failure detection Failure detection If no update seen for an agent in time T fail, remove it from the system If no update seen for an agent in time T fail, remove it from the system Integration Integration After partitions, crashes, etc. renegate trees can be formed After partitions, crashes, etc. renegate trees can be formed Use of broadcast, multicast, hints, to discover other agents Use of broadcast, multicast, hints, to discover other agents

27 © Copyright 2002 Werner Vogels Subscription routing At the leafs the subscribers store subscription information At the leafs the subscribers store subscription information Aggregation functions combine the subscriptions of participants into subscriptions for the zone Aggregation functions combine the subscriptions of participants into subscriptions for the zone Publishers use Publishers use zone.send(subscription, data) which is forwarded if the zone has children that match the subscription

28 © Copyright 2002 Werner Vogels Routing infrastructure Each zone dynamically selects 2-3 routing nodes using AFC’s using various load factors Each zone dynamically selects 2-3 routing nodes using AFC’s using various load factors These nodes receive news items for their children in their zone These nodes receive news items for their children in their zone Forwarding based on the individual subscription information Forwarding based on the individual subscription information Redundancy used to achieve robustness and reliability Redundancy used to achieve robustness and reliability

29 © Copyright 2002 Werner Vogels Summary


Download ppt "Collaborative Content Delivery Werner Vogels Robbert van Renesse, Ken Birman Dept. of Computer Science, Cornell University A peer-to-peer solution for."

Similar presentations


Ads by Google