O'Reilly logo

Web Caching by Duane Wessels

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Popularity

Figure A-4 shows the Zipf-like distribution of object popularity. The X-axis is the popularity rank. The most popular object has a rank of 1, the second most popular object a rank of 2, and so on. The Y-axis is the number of requests for each object. Note that both axes have a logarithmic scale.

Popularity distributions (IRCache and Anon-U data)

Figure A-4. Popularity distributions (IRCache and Anon-U data)

We say the distribution is Zipf-like because it almost follows Zipf’s law. This law, named after George Kingsley Zipf, describes things such as the frequency of words in English texts and the populations of cities. It is also useful for characterizing the popularity of web objects. Specifically, the probability of access for the ith most popular object is proportional to i-a . In Zipf’s law, the exponent a is close to 1. For web traffic, the exponent is typically between 0.6 and 0.8.

This data is derived by counting the number of times each URL occurs in Squid’s access.log. After getting these counts, the particular URLs are unimportant. The values are sorted and plotted against their rank in the list.

For comparison, I show curves for both the IRCache and Anon-U data sets. The Anon-U plot is below the IRCache plot because it has significantly fewer accesses. The two appear to be similar, except that the Anon-U line slopes down much more for the 100 most popular objects.

Size and Popularity

Back in Section 2.4, and Section ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required