Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Effect of Consistency on Cache Response Time John Dilley and HP Laboratories IEEE Network, May-June 2000 Chun-Fu Kung System Laboratory Dept. of Computer.

Similar presentations


Presentation on theme: "The Effect of Consistency on Cache Response Time John Dilley and HP Laboratories IEEE Network, May-June 2000 Chun-Fu Kung System Laboratory Dept. of Computer."— Presentation transcript:

1 The Effect of Consistency on Cache Response Time John Dilley and HP Laboratories IEEE Network, May-June 2000 Chun-Fu Kung System Laboratory Dept. of Computer Engineering and Science Yuan-Ze University 2000/9/6

2 Outline Introduction Cache consistency HTTP consistency validation Some limitations Simulation and results Conclusion

3 Introduction Proxy cache can improve response time, reduce network demand, and lighten the load on the origin Web servers. Cache servers are typically placed close to a group of end users and handle all HTTP requests from those users. A cached copy of an object may differ from the current copy of that object at the origin server.

4 Introduction(cont.) Currently origin servers do not communicate changes to caches; a cache must ask about them. The cache must decide whether to serve the object immediately or to validate it with the origin server. The cache will serve locally any object it considers to be fresh, but will attempt to check an object’s consistency before serving the request if the object is stale.

5 Cache Consistency Fast hits – the cache return objects data to the requester without remote communication. Fast validations – the cache return only a validation of freshness to the requester. Slow hits – the cache return object data to the requester after validating it with origin server. Slow validations – the cache return the validation of freshness after contacting the origin server.

6 Cache Consistency(cont.) Consistency miss – the cache return a copy of the object after contacting the origin server and getting a fresh copy of the object. Regular miss – the cache return an object that was not in cache after contacting the origin server to retrieve a copy of that object (cold miss and capacity miss). Direct – the request is send to the origin server, and the response data is relay to the client (the cache does not keep the copy of that object).

7 HTTP Consistency Validation Object age – the time between modification and current time (the value is Age1). TTL – the cache computes a percentage of the object’s age (the value is %Age1) During the TTL period the object is considered fresh. After the TTL expires the object in cache is stale.

8

9 Some Limitations Cache log files usually includes the object URI, the object size, the service time, whether object data was returned to the client, and whether the cache made a consistency check with remote server. There are some limitations with such a log-based analysis scheme. Cache log don’t indicate when the client received and displayed the response in the browser application.

10 Some Limitations(cont.) Service time don’t include processing time of the operating system kernel or network card on the cache system. The logs cannot identify which objects are served from browser’s cache. The log don’t indicate whether external requests are served by other parent proxies.

11 Server Studied The analysis is based on the study of log files from three Web cache servers: – granite.hpl.hp.com : 3.3 million/month(16) – proxy.hpl.hp.com : 11.4 million/month(1) – Cable modem site : 8.2 million/week(1)

12 ResponseMean sizeResponse time (s) type%(kbytes)mean50th80th Fast val12.70.1960.0880.0250.098 Slow val4.30.1240.7690.2630.589 Fast hit12.64.9860.2180.0410.141 Slow hit13.04.8710.7760.2290.501 Cons. miss4.58.2421.9100.4371.148 Miss49.216.4402.3320.5011.514 Result-1

13 ResponseMean sizeResponse time (s) type%(kbytes)mean50th80th Fast val13.90.000.0710.0320.072 Slow val9.60.000.9930.4470.661 Fast hit13.96.1940.1590.0510.117 Slow hit5.95.2490.9080.4680.692 Cons. miss1.259.4271.3550.72412.02 Miss26.4768.382.1300.7941.413 Direct28.4331.741.926n/a Result-2

14 ResponseMean sizeResponse time (s) type%(kbytes)mean50th80th Fast val9.240.000.0370.0130.030 Slow val10.10.000.7170.1910.380 Fast hit15.011.1880.9520.0280.049 Slow hit11.19.9120.9760.2140.437 Miss50.817.0342.5820.5621.479 Result-3

15 Conclusion When an object is in cache it takes approximately half the time to validation and return the object to client quickly. We have proposed such a mechanism and shown via simulation that it provides better object consistency, is faster for end users, consumes slightly less network bandwidth, and reduce origin server load.


Download ppt "The Effect of Consistency on Cache Response Time John Dilley and HP Laboratories IEEE Network, May-June 2000 Chun-Fu Kung System Laboratory Dept. of Computer."

Similar presentations


Ads by Google