ICP and the Squid Web Cache Duanc Wessels k Claffy August 13, 1997 元智大學系統實驗室 宮春富 2000/01/26.

Slides:



Advertisements
Similar presentations
Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Advertisements

Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
Transport Layer – TCP (Part1) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
1 Internet Networking Spring 2004 Tutorial 13 LSNAT - Load Sharing NAT (RFC 2391)
EEC-484/584 Computer Networks Lecture 6 Wenbing Zhao
Web Caching Schemes1 A Survey of Web Caching Schemes for the Internet Jia Wang.
Internet Networking Spring 2006 Tutorial 12 Web Caching Protocols ICP, CARP.
Internet Control Message Protocol (ICMP). Introduction The Internet Protocol (IP) is used for host-to-host datagram service in a system of interconnected.
Hypertext Transfer Protocol Kyle Roth Mark Hoover.
Chapter 29 Structure of Computer Names Domain Names Within an Organization The DNS Client-Server Model The DNS Server Hierarchy Resolving a Name Optimization.
Networking Theory (part 2). Internet Architecture The Internet is a worldwide collection of smaller networks that share a common suite of communication.
Adaptive Web Caching: Towards a New Caching Architecture Authors and Institutions: Scott Michel, Khoi Nguyen, Adam Rosenstein and Lixia Zhang UCLA Computer.
What’s a Web Cache? Why do people use them? Web cache location Web cache purpose There are two main reasons that Web cache are used:  to reduce latency.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #13 Web Caching Protocols ICP, CARP.
Internet Networking Spring 2002 Tutorial 13 Web Caching Protocols ICP, CARP.
IP Routing: an Introduction. Quiz
1Bloom Filters Lookup questions: Does item “ x ” exist in a set or multiset? Data set may be very big or expensive to access. Filter lookup questions with.
1 The Mystery of Cooperative Web Caching 2 b b Web caching : is a process implemented by a caching proxy to improve the efficiency of the web. It reduces.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #12 LSNAT - Load Sharing NAT (RFC 2391)
Internet Command Message Protocol (ICMP) CS-431 Dick Steflik.
1 K. Salah Module 5.3: Internet Control Message Protocol Why need ICMP? IP and ICMP ICMP Message Format ICMP Error Reporting messages ICMP Query messages.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols Network Fundamentals – Chapter.
Gursharan Singh Tatla Transport Layer 16-May
CS 356 Systems Security Spring Dr. Indrajit Ray
Process-to-Process Delivery:
Mapping Internet Addresses to Physical Addresses (ARP)
1 CMPT 471 Networking II ICMP © Janice Regan, 2012.
Guide to TCP/IP, Third Edition
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 9 Internet Control Message.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
1 3 Web Proxies Web Protocols and Practice. 2 Topics Web Protocols and Practice WEB PROXIES  Web Proxy Definition  Three of the Most Common Intermediaries.
23-Support Protocols and Technologies Dr. John P. Abraham Professor UTPA.
1 ELEN602 Lecture 2 Review of Last Lecture Layering.
Chapter 1: Introduction to Web Applications. This chapter gives an overview of the Internet, and where the World Wide Web fits in. It then outlines the.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
2: Application Layer1 Chapter 2 outline r 2.1 Principles of app layer protocols r 2.2 Web and HTTP r 2.3 FTP r 2.4 Electronic Mail r 2.5 DNS r 2.6 Socket.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
Access Control List (ACL)
(Business) Process Centric Exchanges
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
NetCache Architecture and Deployment Peter Danzig Network Appliance, Santa Clara, CA 元智大學 系統實驗室 陳桂慧
Internet Protocol B Bhupendra Ratha, Lecturer School of Library and Information Science Devi Ahilya University, Indore
CSE 6590 Department of Computer Science & Engineering York University 111/9/ :26 AM.
Error and Control An IP datagram travels from node to node on the way to its destination Each router operates autonomously Failures or problems may occur.
1 OSI and TCP/IP Models. 2 TCP/IP Encapsulation (Packet) (Frame)
HTTP evolution - TCP/IP issues Lecture 4 CM David De Roure
ICP and the Squid Web Cache Duane Wessels and K. Claffy 산업공학과 조희권.
Setup and Management for the CacheRaQ. Confidential, Page 2 Cache Installation Outline – Setup & Wizard – Cache Configurations –ICP.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
Web Services. 2 Internet Collection of physically interconnected computers. Messages decomposed into packets. Packets transmitted from source to destination.
Lecture 4 Mechanisms & Kernel for NOSs. Mechanisms for Network Operating Systems  Network operating systems provide three basic mechanisms that support.
Firewalls A brief introduction to firewalls. What does a Firewall do? Firewalls are essential tools in managing and controlling network traffic Firewalls.
Cache Digest Alex Rousskov Duane Wessels National Laboratory for Applied Network Research April 17, 1998 元智大學 資訊工程研究所 系統實驗室 陳桂慧 February 9, 1999.
1 Transport Layer: Basics Outline Intro to transport UDP Congestion control basics.
Access Control List (ACL) W.lilakiatsakun. Transport Layer Review (1) TCP (Transmission Control Protocol) – HTTP (Web) – SMTP (Mail) UDP (User Datagram.
4343 X2 – The Transport Layer Tanenbaum Ch.6.
Internet Cache Protocol Erez Tal Assaf Oren Avner Cohen Submission Date: 5/2/01 Guides: Ran Wolff and Itai Dabran.
TCP/IP Illustrated, Volume 1: The Protocols Chapter 6. ICMP: Internet Control Message Protocol ( 월 ) 김 철 환
Overview on Web Caching COSC 513 Class Presentation Instructor: Prof. M. Anvari Student name: Wei Wei ID:
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
Improving the WWW: Caching or Multicast? Pablo RodriguezErnst W. BiersackKeith W. Ross Institut EURECOM 2229, route des Cretes. BP , Sophia Antipolis.
Internet Control Message Protocol (ICMP)
Internet Networking recitation #12
Internet Control Message Protocol (ICMP)
TCP/IP Protocol Suite: Review
Networking Theory (part 2)
Computer Networks Protocols
Networking Theory (part 2)
Networking Theory (part 2)
Presentation transcript:

ICP and the Squid Web Cache Duanc Wessels k Claffy August 13, 1997 元智大學系統實驗室 宮春富 2000/01/26

Outline ⊙ Introduction ⊙ Internet Cache Protocol ⊙ Implementation of ICP in Squid ⊙ ICP Delays

What is Caching ⊙ Caching has proven a useful technique for reducing end user experienced latency on the Web. ⊙ Caching is effective because many Web Documents are requested much more than once. ⊙ Cache is the intermediate storage of copies of popular Web documents close to the end users.

HTTP ⊙ An HTTP request is comprised of three major parts: a request method, a URL, and a set of request headers. ⊙ An HTTP reply consists of a numeric result code, a set of reply headers, and an optional reply body. ⊙ GET -> download; POST -> upload. ⊙ Max-age directive: age refers to the elapsed time since the origin server provide the data.

Cache Hierarchical ⊙ A set of child cache share a common parent cache. ⊙ A simple hierarchy is not appropriate to all situations. ⊙ The ICP is to provide a quick and efficient method of intercache communication, offers a mechanism for establishing complex cache hierarchies. PARENT CHILD

ICP Message Format ⊙ A cache will query its peers by sending each one an ICP_QUERY message. ⊙ The peer will reply with either an ICP_HIT or ICP_MISS. ⊙ Other codes: ICP_DENIED 、 ICP_HIT_OBJ. 031

ICP Transport ⊙ ICP could use TCP or UDP as the underlying delivery protocol. ⊙ A UDP is simpler to implement because each cache needs to maintain only a single UDP socket. ⊙ A ICP is intended as unreliable protocol and TCP would actually be detrimental.

⊙ One advantage: a cache can quickly parse and interpret an ICP message. ⊙ Two disadvantages: ICP doesn’t match HTTP; ICP increase the request latency by at least the network round-trip time to a neighbor cache. ICP vs. HTTP

ICP Query Algorithm ⊙ Squid supports the ability to restrict the range of ICP_QUERY messages it will send to different peers. ⊙ The cache_host_domain option lets one specify which domains to query for a given peer. ⊙ Another Squid configuration parameter, hierarchy_stoplist, allows one to exclude certain requests from the ICP query algorithm.

⊙ Extract and parses the URL. (ICP_INVALID) ⊙ Check local access controls. (ICP_DENIED) ⊙ Lookup the given URL. (ICP_MISS) ⊙ If object is small enough, return an ICP_HIT_OBJ message. ⊙ Otherwise, return an ICP_HIT message. Processing an ICP query

⊙ Squid collects replies until it receives an ICP_HIT or until all ICP_MISS replies arrive. ⊙ When receiving an ICP_HIT, Squid begins retrieving the object from that peer. ⊙ If ICP_HIT_OBJ reply is first arrive, Squid just takes the object data from the ICP message payload. ⊙ If no hit reply, then Squid retrieves the object from the parent. Collect ICP replies

⊙ One of the peers becoming unreachable would significantly increase the chances of suffering the two-second timeout. ⊙ We designate a peer as dead when it fails to reply to 20 consecutive ICP queries. ⊙ We still send the ICP_QUERY messages to dead peers, we just don’t expect to receive replies from them. Detecting Unreachable Peers

⊙ The Squid will return ICP_MISS_NOFETCH instead of ICP_MISS message. ⊙ This feature allows this parent to continue serving hits, but take itself out of the peer selection process for misses. More Network Failure INTERNET PARENT ROUTER CHILD A B

⊙ One problem is that it makes the UDP packet quite a bit larger. ⊙ Another problem is they require more time to generate. ⊙ The payload must actually consist of the URL followed by the object data. ICP_HIT_OBJ

⊙ We don’t claim these measurements prove that hierarchical caching with ICP gives improved performance. ⊙ We suspect it depends on the regional and/or local network situation. ⊙ We used a special program to alternate between sending ICMP echo request and ICP_QUERY messages. ICP Delay