views:

176

answers:

2

Caching can be used to reduce the access overhead. Hierarchical caching takes the advantage of the topology of the Internet and deploys the cache at different ISPs. Suppose the hierarchical topology of the Internet is composed of three-level ISPs, national, regional and local. The hit ratios of searching a webpage at different level of the cache of the ISP are as follows:

ISP Level | Hit Ratio
National      0.2
Regional     0.4
Local           0.6

The Internet delays for retrieving the web pages (a round trip time) from the remote trans-continental Internet website is 200msec, the Internet delay for retrieving the web pages from a National ISP's cache is 10msec, and the Internet delay for other caches are all negligible.

1. What does hit-ratio mean? The bigger the number, the faster to retrieve from cache?
2. What is the probability that a requested website is not found in the hierarchical caching?
3. What is the average delay for retrieving a web page?

Here we assume the web page is very small and the transmission time is negligible.

+1  A: 

The hit ratio is the proportion of requests that were satisfied from the cache. That should give you enough information to work out the answers to your other questions.

moonshadow
+1  A: 
  1. hit ratio = (# requests satisfied from cache)/ (# requests) more hit from local cache would result in faster loading

  2. probability not found in any of cache = (1-0.6) * (1-0.4) * (1-0.2) [not found in local cache * not found in regional cache * not found in national cache

  3. average delay= 0.6x0 ms + (1-0.6)x0.4x0 ms + (1-0.6)x(1-0.4)x0.2x10 ms + (1-0.6)x(1-0.4)x(1-0.2)x100 ms

rkatiyar
Why are you solving his homework?
jitter
umm...it's a past paper question, thanks
monday.c
That doesn't mean you shouldn't solve it yourself...
Andrew Song
my first reply on here, i wanted to be generous :)
rkatiyar