Hierarchical caching simulation with visualisation

Authors: Ian Marsh and Anders Gunnar (SICS Swedish ICT)
Venue: 15th International Conference on Computer Modelling and Simulation (UKSim), Cambridge, April 2013
DOI: 10.1109/UKSim.2013.154
Year: 2013
Topic: IP Networking

Paper (IEEE Xplore) · Interactive demo: Saizu cache lab · Internet caching project · Rickard Edström's thesis

Summary

Popular files increasingly sit in storage inside the network, close to the people who want them. Content delivery networks (CDNs) such as Akamai and Amazon CloudFront, and services such as Netflix and Dropbox, use such storage to take load off servers and links and to cut download times.

Understanding how the caches inside a CDN behave is not trivial. Content, requests, topologies, eviction policies, and differences in place and time all interact, so it is hard to predict what to store and what to evict. This paper takes two prongs:

  1. Build a hierarchical cache simulator: caches at several levels, where each level sees the misses of the level below.
  2. Visualise the cache dynamics, for both a quantitative and a qualitative understanding of the system.

The long-term aim is to place, dimension and manage caches optimally, without superfluous configuration.

Why a hierarchy changes things

In a single cache, the request stream is the users' requests. In a hierarchy, a parent cache sees only what its children missed. Popular items are absorbed lower down, so the parent's stream is flatter (less skewed) and harder to cache. That has practical consequences:

  • Adding capacity at the top of a hierarchy gives less benefit than the same capacity at the edge.
  • The best eviction policy can differ by level: recency (LRU) at the edge, frequency (LFU) higher up, or not caching items the level below will already hold.
  • Duplication across levels wastes storage, which favours schemes that coordinate what each level keeps.

Visualisation

Hit rates and averages hide the dynamics: how a cache warms up, how it reacts to a new popular item, how the hierarchy shares the load. The paper shows these as they happen. The later Saizu cache lab on this site continues the idea for a single controlled cache.

What the cache holds by popularity rank, and the response-time distribution
From the Saizu cache lab: items by popularity rank with what the cache holds (left), and the bimodal response time of hits and misses (right).

Discussion

Simulation plus visualisation is a design tool, not a proof. Its value is in building intuition about a system with too many interacting parts for closed-form analysis, and in spotting behaviour that summary statistics miss. The caching models that followed in the literature, such as the Che approximation for LRU hit rates and its extensions to networks of caches, give the analytical side.

Future work

  • Feed real traces (CDN logs, mobile operator data) into the simulator rather than synthetic Zipf requests.
  • Add dynamic sizing with feedback control; see Understanding cache dynamics in the network.
  • Model placement jointly with sizing: which tier, which city, how much storage.
  • Extend to information-centric networks, where every router may cache; see NetInf TP.

The EU perspective

  • Caches inside European operator networks now carry most video traffic. How much of it arrives from a few large content providers is at the centre of the EU debate on fair contribution to network costs: the Commission's 2023 exploratory consultation, its 2024 white paper on digital infrastructure, and the proposed Digital Networks Act.
  • BEREC has argued that CDNs and caching already lower operators' costs, an empirical question that tools like this help answer.
  • The Open Internet Regulation (EU) 2015/2120 permits caching as reasonable traffic management, provided it does not discriminate between content providers.
  • Energy: storage close to users trades transport energy against storage energy; the Energy Efficiency Directive (EU) 2023/1791 brings data-centre energy reporting into EU law.

References

  1. I. Marsh and A. Gunnar, "Hierarchical caching simulation with visualisation," UKSim, 2013.
  2. H. Che, Y. Tung and Z. Wang, "Hierarchical web caching systems: modeling, design and experimental results," IEEE JSAC 20(7), 2002.
  3. E. Nygren, R. K. Sitaraman and J. Sun, "The Akamai network: a platform for high-performance Internet applications," ACM SIGOPS OSR 44(3), 2010.
  4. I. Marsh, Understanding cache dynamics in the network: a software approach, EAI Transactions, 2016.
  5. BEREC, Preliminary assessment of the underlying assumptions of payments from large CAPs to ISPs, BoR (22) 137, 2022.

Citation

Ian Marsh and Anders Gunnar, Hierarchical caching simulation with visualisation, UKSim, 2013, Paper.

BibTeX

@inproceedings{marsh2013hierarchical,
  author    = {Marsh, Ian and Gunnar, Anders},
  title     = {Hierarchical caching simulation with visualisation},
  booktitle = {15th International Conference on Computer Modelling and Simulation (UKSim)},
  year      = {2013},
  doi       = {10.1109/UKSim.2013.154}
}

Related student thesis

More in IP Networking: ← NetInf TP: A receiver-driven protocol for ICN data transport | Considerations for a Network of Information →

← All publications