Active Cache: Caching Dynamic Contents on the Web Presented by Rahul K S & Balaji N V.

Slides:



Advertisements
Similar presentations
The Internet and the Web
Advertisements

Enabling Secure Internet Access with ISA Server
Communicating Information: Web Design. It’s a big net HTTP FTP TCP/IP SMTP protocols The Internet The Internet is a network of networks… It connects millions.
1 Content Delivery Networks iBAND2 May 24, 1999 Dave Farber CTO Sandpiper Networks, Inc.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Web Caching Schemes1 A Survey of Web Caching Schemes for the Internet Jia Wang.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Internet Networking Spring 2006 Tutorial 12 Web Caching Protocols ICP, CARP.
The Internet Useful Definitions and Concepts About the Internet.
Introduction to Web Database Processing
OCT1 Principles From Chapter One of “Distributed Systems Concepts and Design”
INTERNET DATABASE. Internet and E-commerce Internet – a worldwide collection of interconnected computer network Internet – a worldwide collection of interconnected.
The Internet and the World Wide Web. Una DooneyThe Internet and WWWSlide 2 What is the Internet? A collection of networks (LANS and WANS) around the world.
Introduction to Web Interface Technology (CSE2030)
1 Web Content Delivery Reading: Section and COS 461: Computer Networks Spring 2007 (MW 1:30-2:50 in Friend 004) Ioannis Avramopoulos Instructor:
Winter 2005 CMPE 151: Network Administration Clients.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
 Proxy Servers are software that act as intermediaries between client and servers on the Internet.  They help users on private networks get information.
1 Enabling Secure Internet Access with ISA Server.
HTML Comprehensive Concepts and Techniques Intro Project Introduction to HTML.
IT 210 The Internet & World Wide Web introduction.
1 Accessing the Global Database The World Wide Web.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Design and Implement an Efficient Web Application Server Presented by Tai-Lin Han Date: 11/28/2000.
The Internet in Education Objectives Introduction Overview –The World Wide Web –Web Page v. Web Site v. Portal Unique and Compelling Characteristics Navigation.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Infrastructure for Better Quality Internet Access & Web Publishing without Increasing Bandwidth Prof. Chi Chi Hung School of Computing, National University.
CIS 1310 – HTML & CSS 1 Introduction to the Internet.
1 Chapter 1 Web Components (Introduction) Web Protocols and Practice.
1 What is the history of the Internet? ARPANET (Advanced Research Projects Agency Network) TCP/IP (Transmission Control Protocol/Internet Protocol) NSFNET.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
CH1. Hardware: CPU: Ex: compute server (executes processor-intensive applications for clients), Other servers, such as file servers, do some computation.
-1- System Software Research Lab. Active Cache : Caching Dynamic Contents on the Web Pei Cao, Jin Zhang and Kevin Beach Middleware’ SSLAB,
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 1.
HTTP evolution - TCP/IP issues Lecture 4 CM David De Roure
Fall 2000C.Watters1 World Wide Web and E-Commerce Clients & Client Side Processing.
JS (Java Servlets). Internet evolution [1] The internet Internet started of as a static content dispersal and delivery mechanism, where files residing.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, written in Java code, that.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
CS 6401 The World Wide Web Outline Background Structure Protocols.
CSCI-235 Micro-Computers in Science The Internet and World Wide Web.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
JavaScript and Ajax (Internet Background) Week 1 Web site:
Overview on Web Caching COSC 513 Class Presentation Instructor: Prof. M. Anvari Student name: Wei Wei ID:
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
Web Cache. What is Cache? Cache is the storing of data temporarily to improve performance. Cache exist in a variety of areas such as your CPU, Hard Disk.
1 Wireless World Wide Web: Mobile Access to Web Resources 王讚彬 台中教育大學資訊系.
The Internet. The Internet and Systems that Use It Internet –A group of computer networks that encircle the entire globe –Began in 1969 Protocol –Language.
BUILD SECURE PRODUCTS AND SERVICES
WWW and HTTP King Fahd University of Petroleum & Minerals
CONNECTING TO THE INTERNET
JavaScript and Ajax (Internet Background)
Internet and Intranet.
Warm Handshake with Websites, Servers and Web Servers:
CNIT 131 Internet Basics & Beginning HTML
Web Caching? Web Caching:.
Internet and Intranet.
1 Introduction to the Internet.
Web Privacy Chapter 6 – pp 125 – /12/9 Y K Choi.
Internet and Intranet.
Web Page Concept and Design :
Introduction to WWW Past  Present  Future.
Internet and Intranet.
Presentation transcript:

Active Cache: Caching Dynamic Contents on the Web Presented by Rahul K S & Balaji N V

Abstract Dynamic documents constitute an increasing percentage of contents on the Web, and caching dynamic documents becomes an increasingly important issue. Active Cache scheme to support caching of dynamic contents at Web proxies has been proposed in this paper. The scheme allows servers to supply cache applets to be attached with documents, and requires proxies to invoke cache applets upon cache hits to furnish the necessary processing without contacting the server. This scheme can result in significant network bandwidth savings at the expense of moderate CPU costs.

WWW - The Inside Story n : –Tim Berners-Lee develops Web at CERN. HTML, HTTP, line mode browser. –Countries from all over world connect to NSFNet backbone network. n 1993 –NCSA release first alpha version of Marc Andreesen's ” Mosaic for X". –Over 200 Web servers in operation. –TCP/IP is integrated in Microsoft and Apple operating systems. 98mcs011: CERN:European Union of Particle Physiscs 98mcs011: CERN:European Union of Particle Physiscs 98mcs011: NCSA : National Center for Supercomputing Applications 98mcs011: NCSA : National Center for Supercomputing Applications 98mcs011: NLANR -- National Laboratory for Applied Network Research 98mcs011: NLANR -- National Laboratory for Applied Network Research

n 1994: –1st WWW conference –Andreesen forms Mosaic Communication –First W3C meeting n 1995 –network providers (MCI, Sprint, etc.) –Internet open for commercial use. –Web traffic becomes dominant Internet traffic. –Compuserve, America Online, Prodigy provide Internet/Web service. –Netscape goes public. –NLANR begins to build a network of Web caches. n 1998 – Over two million Web servers in less than ten years!

Why Caching in the Network? n Reduce latency by avoiding slow links between client and origin server –Low bandwidth internet connections –Congested links n Reduce traffic on links –Low bandwidth lines can be avoided n Spread load of overloaded origin server to caches. –Inexpensive servers n Avoid protocol overheads –Slow start experienced by every object can be avoided

Caching: Motivation and Strategies n Temporal Locality of Reference –User often visits a site Store the web page in the cache n Spatial Locality of Reference –User is likely to visit the links provided in the current page Pre-fetch the pages and cache n Hit Intensive Sites –Popular web sites are likely to be accessed by many. Keep a common cache for all the users

Current Forms of Caching n Client Caches –Caches maintained at clients. Managed by browsers. n Hierarchical Caching –Cache is maintained at every level of the Hierarchy. At the Client, Local ISPs, Regionsl ISPs etc... –More Cache in the Servers higher in the hierarchy –Cache is maintained at proxy servers n Chain of Caches – caches collaborate within themselves. For eg. National level ISPs can agree to collaborate

Shortcomings of Present Cache Schemes n Only static pages are cached –Current caches do not store dynamic web pages: dynamic web pages are becoming very widely used techinique to personalize the internet e.g my.yahoo.com n No efficient prefetching algorithms are used –Only brute-force strategy is used e.g. web accelarators

Active Cache Scheme n A Cache Applet is included with every URL or set of URLs –Cache Applets are server supplied code –Written in platform-independent programming language such as Java –migrates parts of server processing on each user request to the caching proxy –On every hit the applet is run and the results are sent to the client

Features and Benefits of Active Cache n Can perform a variety of functions, for example, logging user accesses, rotating advertising banners, checking access permissions, constructing client- specific Web pages, etc. n They promote caches from static storage of pages to storage of objects – data with a method is invoked on hits

Working of Active Cache 1. The cache server gets the URL page along with its cache applet on the first accces 2. On hit on cached document, either cache applet is invoked or the request is sent to the server –cache server has the freedom to invoke or send the request to the server depending on cache applet’s resource usage 3. If the applet's execution fails due to any reason, the request is sent to the server 4. if the applet's execution succeeds, the proxy will take the appropriate action based on the return value of the FromCache method 5. Each applet can deposit information in a special log object and the proxy will send the log object back to the server periodically.

More About Active Cache n Specification n Interface n Security Mechanism n Resource Management Policies

Active Cache : Protocol Specification n entity header, ``CacheApplet” : CacheApplet: code = ``code.class'', archive = ``code.jar'', codebase = ``codebase_url'' – HTTP/1.1 requires that if a proxy does not recognize an entity header, it should forward the header. So the server can be assured that Active-Cache enabled proxies will receive the header even if they have parent proxies. n Active-Cache enabled proxies work as mentioned earlier

ActiveCache Protocol: Interface n The cache applet must implement an interface called “ActiveCacheInterface “ –The Applet must be written in Java –It should have a function called “ FromCache “ The function is called when an access hits in the document arguments of the function call include the user request, the IP address of the client machine, the name of the client machine, the document in cache, and a new file descriptor for the applet to write when constructing a new Web page –The cache applet can only call the ActiveProxy class provides the native methods for file access, cache query, locking and unlocking as well as sending requests to servers.

ActiveCache Protocol: Security Mechanisms n Illegal Acccess : –rely on a type-safe language.like Java, with built-in security mechanisms, a well-defined security interface, n Denial of Service Attacks: –The proxy can keep track of an applet's resource consumption in the following five aspects: storage size Disk Bandwidth Consumption Network Bandwidth Consumption CPU Usage Virtual Memory Size –Proxy can impose upper limit on the above resources and purge the applet whose resource usage exceeds the upper limit

ActiveCache protocol: Resource Management Issues: n Cache the Document or Not n Invoke the applet or forward the request to the server Category of applets and solutions: n Un-negotiated objects –Estimate the benefits of caching. If the benefits are more cache otherwise do not cache –Impose upper limit on resource usage. Invoke the applet if the resource usage is less than the upper limit n Negotiated objects –Negotiate the resource utilisation through negotiate protocol Cache the document and invoke each time the applet in case of successful negotiation

References 1. Pei Cao, Jin Zhang and Kelwing Beach, “Active Cache: Caching Dynamic Contents on the Web”, Proceedings of Middleware’98. Available cache/active-cache.html 2. Tutorial on web cache Available in the link Online Presentations:Distribution of Stored Information in the Web: