Computer Science Lecture 14, page 1 CS677: Distributed OS Last Class: Concurrency Control Concurrency control –Two phase locks –Time stamps Intro to Replication.

Slides:



Advertisements
Similar presentations
Consistency and Replication Chapter 7 Part II Replica Management & Consistency Protocols.
Advertisements

1 CS6320 – Performance L. Grewe 2 The Servlet Interface Java provides the interface Servlet Java provides the interface Servlet Specific Servlets implement.
Computer Science Lecture 14, page 1 CS677: Distributed OS Consistency and Replication Today: –Introduction –Consistency models Data-centric consistency.
CS-550: Distributed File Systems [SiS]1 Resource Management in Distributed Systems: Distributed File Systems.
Distributed Systems Fall 2010 Replication Fall 20105DV0203 Outline Group communication Fault-tolerant services –Passive and active replication Highly.
A Taxonomy and Survey of Content Delivery Networks Meng-Huan Wu 2011/10/26 1.
Web Caching Schemes1 A Survey of Web Caching Schemes for the Internet Jia Wang.
Computer Science Lecture 14, page 1 CS677: Distributed OS Consistency and Replication Today: –Introduction –Consistency models Data-centric consistency.
Internet Networking Spring 2006 Tutorial 12 Web Caching Protocols ICP, CARP.
Adaptive Push-Pull: Disseminating Dynamic Web Data Pavan Deolasee, Amol Katkar, Krithi,Ramamritham Indian Institute of Technology Bombay Dept. of CS University.
Computer Science Lecture 16, page 1 CS677: Distributed OS Last Class: Web Caching Use web caching as an illustrative example Distribution protocols –Invalidate.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #13 Web Caching Protocols ICP, CARP.
Scalable Adaptive Data Dissemination Under Heterogeneous Environment Yan Chen, John Kubiatowicz and Ben Zhao UC Berkeley.
Collaborative Web Caching Based on Proxy Affinities Jiong Yang, Wei Wang in T. J.Watson Research Center Richard Muntz in Computer Science Department of.
Computer Science Lecture 2, page 1 CS677: Distributed OS Last Class: Introduction Distributed Systems – A collection of independent computers that appears.
Distributed Systems Fall 2009 Replication Fall 20095DV0203 Outline Group communication Fault-tolerant services –Passive and active replication Highly.
Internet Networking Spring 2002 Tutorial 13 Web Caching Protocols ICP, CARP.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Client-Centric.
Web Caching Schemes For The Internet – cont. By Jia Wang.
Computer Science Lecture 16, page 1 CS677: Distributed OS Last Class:Consistency Semantics Consistency models –Data-centric consistency models –Client-centric.
Content Networking - CON Content Overlay Network Vishal Kumar Singh Eilon Yardeni April, 28 th 2005.
Caching and Content Distribution Networks. Web Caching r As an example, we use the web to illustrate caching and other related issues browser Web Proxy.
1 Content Distribution Networks. 2 Replication Issues Request distribution: how to transparently distribute requests for content among replication servers.
Caching and Content Distribution Networks. Some Interesting Observations r Top 1 % of all documents account for 20% - 35% of proxy requests r Top 10%
Cache Updates in a Peer-to-Peer Network of Mobile Agents Elias Leontiadis Vassilios V. Dimakopoulos Evaggelia Pitoura Department of Computer Science University.
Hybrid Prefetching for WWW Proxy Servers Yui-Wen Horng, Wen-Jou Lin, Hsing Mei Department of Computer Science and Information Engineering Fu Jen Catholic.
{ Content Distribution Networks ECE544 Dhananjay Makwana Principal Software Engineer, Semandex Networks 5/2/14ECE544.
1 6.4 Distribution Protocols Different ways of propagating/distributing updates to replicas, independent of the consistency model. First design issue.
Computer Science Lecture 10, page 1 CS677: Distributed OS Canonical Problems in Distributed Systems Time ordering and clock synchronization Leader election.
Content Delivery Networks Web caching
SAINT ‘01 Proactive DNS Caching: Addressing a Performance Bottleneck Edith Cohen AT&T Labs-Research Haim Kaplan Tel-Aviv University.
Zhen Feng, Mingwei Xu, Yu Wang and Qing Li Tsinghua University, Beijing, China, Globalcom2013 – NGN Symposium Katto Lab Hiroto Kisara AN ARCHITECTURE FOR.
Consistency And Replication
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Consistency.
CS 5204 (FALL 2005)1 Leases: An Efficient Fault Tolerant Mechanism for Distributed File Cache Consistency Gray and Cheriton By Farid Merchant Date: 9/21/05.
Strong Cache Consistency Support for Domain Name System Xin Chen, Haining Wang, Sansi Ren and Xiaodong Zhang College of William and Mary, Williamsburg,
ECO-DNS: Expected Consistency Optimization for DNS Chen Stephanos Matsumoto Adrian Perrig © 2013 Stephanos Matsumoto1.
Architecture for Caching Responses with Multiple Dynamic Dependencies in Multi-Tier Data- Centers over InfiniBand S. Narravula, P. Balaji, K. Vaidyanathan,
Consistency and Replication Chapter 6. Release Consistency (1) A valid event sequence for release consistency. Use acquire/release operations to denote.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Adaptive Web Caching CS411 Dynamic Web-Based Systems Flying Pig Fei Teng/Long Zhao/Pallavi Shinde Computer Science Department.
World Wide Web Caching CS457 Seminar Yutao Zhong 11/13/2001.
Computer Science Lecture 13, page 1 CS677: Distributed OS Last Class: Canonical Problems Distributed synchronization and mutual exclusion Distributed Transactions.
Cache Updates in a Peer-to-Peer Network of Mobile Agents Ilias Leontiadis Master’s Thesis University of Ioannina,Greece Supervisors: Vassilios V. Dimakopoulos.
Distributed Systems CS Consistency and Replication – Part IV Lecture 21, Nov 10, 2014 Mohammad Hammoud.
On The Cooperation of Web Clients and Proxy Caches Yiu Fai Sit, Francis C.M. Lau, Cho-Li Wang Department of Computer Science The University of Hong Kong.
Distributed File Systems
HTTP evolution - TCP/IP issues Lecture 4 CM David De Roure
ICP and the Squid Web Cache Duane Wessels and K. Claffy 산업공학과 조희권.
Chapter 7: Consistency & Replication IV - REPLICATION MANAGEMENT By Jyothsna Natarajan Instructor: Prof. Yanqing Zhang Course: Advanced Operating Systems.
Content Delivery Networks: Status and Trends Speaker: Shao-Fen Chou Advisor: Dr. Ho-Ting Wu 5/8/
System Software Lab. A Scalable Web Cache Consistency Architecture Kim Sangyup SSLAB. EE. KAIST SIGCOMM ’ 99 Haobo Yu, Lee Breslau.
09/13/04 CDA 6506 Network Architecture and Client/Server Computing Peer-to-Peer Computing and Content Distribution Networks by Zornitza Genova Prodanoff.
Antidio Viguria Ann Krueger A Nonblocking Quorum Consensus Protocol for Replicated Data Divyakant Agrawal and Arthur J. Bernstein Paper Presentation: Dependable.
DISTRIBUTED FILE SYSTEM- ENHANCEMENT AND FURTHER DEVELOPMENT BY:- PALLAWI(10BIT0033)
Content Distribution Networks
Coral: A Peer-to-peer Content Distribution Network
CS6320 – Performance L. Grewe.
Internet Networking recitation #12
Chapter 7: Consistency & Replication IV - REPLICATION MANAGEMENT -Sumanth Kandagatla Instructor: Prof. Yanqing Zhang Advanced Operating Systems (CSC 8320)
Distributed Systems CS
Consistency and Replication
Content Distribution Networks
Distributed Systems CS
Cary G. Gray David R. Cheriton Stanford University
Dissemination of Dynamic Data on the Internet
Replica Placement Model: We consider objects (and don’t worry whether they contain just data or code, or both) Distinguish different processes: A process.
Outline Review of Quiz #1 Distributed File Systems 4/20/2019 COP5611.
Overview Multimedia: The Role of WINS in the Network Infrastructure
Data Dissemination and Management (3)
Presentation transcript:

Computer Science Lecture 14, page 1 CS677: Distributed OS Last Class: Concurrency Control Concurrency control –Two phase locks –Time stamps Intro to Replication and Consistency

Computer Science Lecture 14, page 2 CS677: Distributed OS Today: Web caching Case Study: web caching as an illustrative example –Invalidate versus updates –Push versus Pull –Cooperation between replicas

Computer Science Lecture 14, page 3 CS677: Distributed OS Replica Placement Permanent replicas (mirroring) Server-initiated replicas (push caching) Client-initiated replicas (pull/client caching)

Computer Science Lecture 14, page 4 CS677: Distributed OS Web Caching Example of the web to illustrate caching and replication issues –Simpler model: clients are read-only, only server updates data browser Web Proxy cache request response request response Web server browser Web server request response

Computer Science Lecture 14, page 5 CS677: Distributed OS Consistency Issues Web pages tend to be updated over time –Some objects are static, others are dynamic –Different update frequencies (few minutes to few weeks) How can a proxy cache maintain consistency of cached data? –Send invalidate or update –Push versus pull

Computer Science Lecture 14, page 6 CS677: Distributed OS Push-based Approach Server tracks all proxies that have requested objects If a web page is modified, notify each proxy Notification types –Indicate object has changed [invalidate] –Send new version of object [update] How to decide between invalidate and updates? –Pros and cons? –One approach: send updates for more frequent objects, invalidate for rest proxy Web server push

Computer Science Lecture 14, page 7 CS677: Distributed OS Push-based Approaches Advantages –Provide tight consistency [minimal stale data] –Proxies can be passive Disadvantages –Need to maintain state at the server Recall that HTTP is stateless Need mechanisms beyond HTTP –State may need to be maintained indefinitely Not resilient to server crashes

Computer Science Lecture 14, page 8 CS677: Distributed OS Pull-based Approaches Proxy is entirely responsible for maintaining consistency Proxy periodically polls the server to see if object has changed –Use if-modified-since HTTP messages Key question: when should a proxy poll? –Server-assigned Time-to-Live (TTL) values No guarantee if the object will change in the interim proxy Web server poll response

Computer Science Lecture 14, page 9 CS677: Distributed OS Pull-based Approach: Intelligent Polling Proxy can dynamically determine the refresh interval –Compute based on past observations Start with a conservative refresh interval Increase interval if object has not changed between two successive polls Decrease interval if object is updated between two polls Adaptive: No prior knowledge of object characteristics needed

Computer Science Lecture 14, page 10 CS677: Distributed OS Pull-based Approach Advantages –Implementation using HTTP (If-modified-Since) –Server remains stateless –Resilient to both server and proxy failures Disadvantages –Weaker consistency guarantees (objects can change between two polls and proxy will contain stale data until next poll) Strong consistency only if poll before every HTTP response –More sophisticated proxies required –High message overhead

Computer Science Lecture 14, page 11 CS677: Distributed OS A Hybrid Approach: Leases Lease: duration of time for which server agrees to notify proxy of modification Issue lease on first request, send notification until expiry –Need to renew lease upon expiry Smooth tradeoff between state and messages exchanged –Zero duration => polling, Infinite leases => server-push Efficiency depends on the lease duration ClientProxy Server Get + lease req Reply + lease read Invalidate/update

Computer Science Lecture 14, page 12 CS677: Distributed OS Policies for Leases Duration Age-based lease –Based on bi-modal nature of object lifetimes –Larger the expected lifetime longer the lease Renewal-frequency based –Based on skewed popularity –Proxy at which objects is popular gets longer lease Server load based –Based on adaptively controlling the state space –Shorter leases during heavy load

Computer Science Lecture 14, page 13 CS677: Distributed OS Cooperative Caching Caching infrastructure can have multiple web proxies –Proxies can be arranged in a hierarchy or other structures Overlay network of proxies: content distribution network –Proxies can cooperate with one another Answer client requests Propagate server notifications

Computer Science Lecture 14, page 14 CS677: Distributed OS Hierarchical Proxy Caching Examples: Squid, Harvest Server Parent HTTP Read A 1 ICP 2 HTTP 3 Clients Leaf Caches

Computer Science Lecture 14, page 15 CS677: Distributed OS Locating and Accessing Data Lookup is local Hit at most 2 hops Miss at most 2 hops (1 extra on wrong hint) Properties (A,X) Node X Server for B Clients Caches Read A Get A Read B Get B Node Y Minimize cache hops on hitDo not slow down misses Node Z

Computer Science Lecture 14, page 16 CS677: Distributed OS CDN Issues Which proxy answers a client request? –Ideally the “closest” proxy –Akamai uses a DNS-based approach Propagating notifications –Can use multicast or application level multicast to reduce overheads (in push-based approaches) Active area of research –Numerous research papers available