Author: Ian Marsh (SICS Swedish ICT)
Venue: EAI Endorsed Transactions on Scalable Information Systems 3(9), 2016
DOI: 10.4108/eai.14-12-2015.2262567
Year: 2016
Topic: IP Networking
Paper (EUDL, open access) · Interactive demo: Saizu cache lab · Internet caching project · Rickard Edström's thesis
Summary
A cache is just memory, yet it captures the dynamics of everyone requesting through it. Thousands of connections over different paths read from it (and sometimes write to it). Users differ in what they ask for and how long they will wait. Each cache has its own eviction policy and size. Caches stacked along one path interact. And because the cache is part of a network, its hit rate and the network's traffic affect each other.
Despite decades of caching, buffering during video playback is still common and annoying. A badly sized cache may be part of the problem; a well-managed one, as in a content delivery network (CDN), part of the solution. This paper presents a joint simulation and visualisation tool to give insight into those dynamics.
Why caching is hard to reason about
- Popularity is skewed and shifting. A few items get most requests (a Zipf distribution), but the ranking drifts, and items can go viral overnight.
- Size is a trade-off. Too small, and a cache adds lookup delay only to miss; too large, and it costs money, power and maintenance for little extra gain.
- Two metrics disagree. The request hit rate counts requests served from the cache; the byte hit rate counts bytes. Many small popular items can give a high request hit rate and a low byte hit rate.
- Response time is bimodal. A hit is served locally in milliseconds; a miss goes to the origin, is stored on the way back and then served. Moving requests between the two humps is the whole point of sizing.

Controlling cache size: Saizu
Instead of fixing the cache size and accepting whatever hit rate results, Saizu (Japanese for "size") turns caching into a control problem:
| Control term | Caching meaning |
|---|---|
| Output | Hit rate over the last k requests |
| Reference (setpoint) | Required hit rate |
| Actuator | Cache size |
| Disturbances | File sizes, popularity drift, viral items |
| Policy | Eviction algorithm (LRU, LFU, …) |
| Cost | Minimise cache size |
A proportional–integral (PI) controller adjusts the size from the error between the measured and required hit rate. Tuning follows classical control: measure the static response (how hit rate grows with size), then the dynamic response from an empty cache (process gain, time constant, dead time).
One limit is statistical rather than mechanical. Each request is a hit or a miss, a Bernoulli trial, so a window of k requests estimates the hit rate only to about ±1/(2√k). With k = 100 that is ±5%: the controller cannot hold the line more tightly than it can measure it.

Uses
- Service differentiation. Split one physical cache into classes and give a premium class more space, so it gets a higher hit rate on average.
- Statistical guarantees. Test that a lower class is never better than a higher one.
- Cost control. Hold the hit rate the business needs with the least storage. In practice that means allocating or releasing quotas on a storage array, not adding disks.
Discussion
The paper argues for seeing cache behaviour, not only summarising it. A single hit-rate number hides the ramp-up after a restart, the dip when a viral item arrives, and the slow loss of hit rate as popularity drifts. Watching the simulation shows each of these, and shows how a controller responds.
The approach has costs: another loop to tune, and a measurement window that trades responsiveness for accuracy. Faster reaction (a derivative term) was left for later.
Future work
- Extend from one cache to hierarchies of caches on a path, where an upper cache sees only the misses of the lower ones. See Hierarchical caching simulation with visualisation.
- Control the byte hit rate or the response time directly, not just the request hit rate.
- Use learned popularity predictions (or admission policies such as TinyLFU) together with the controller.
- Apply the same loop to edge caches in 5G networks, where storage at each site is small and expensive.
The EU perspective
- Energy. Caching saves network transport energy but costs storage energy. The Energy Efficiency Directive (EU) 2023/1791 now requires data centres above 500 kW to report energy use, and the EU Code of Conduct for Data Centre Energy Efficiency sets best practice. Sizing caches to the hit rate actually needed is an energy measure as well as a cost one.
- Net neutrality. Under the Open Internet Regulation (EU) 2015/2120 and BEREC's guidelines, operators may cache content for efficiency but must not use caching to discriminate between providers. Service differentiation inside a cache, as above, has to respect that.
- Peering costs and the network fee debate. CDN caches inside operator networks reduce transit traffic. That is central to the EU discussion, in the 2024 white paper How to master Europe's digital infrastructure needs? and the proposed Digital Networks Act, about whether large content providers should contribute to network costs.
References
- I. Marsh, "Understanding cache dynamics in the network: a software approach," EAI Endorsed Transactions on Scalable Information Systems 3(9), 2016.
- L. Breslau, P. Cao, L. Fan, G. Phillips and S. Shenker, "Web caching and Zipf-like distributions: evidence and implications," IEEE INFOCOM, 1999.
- J. L. Hellerstein, Y. Diao, S. Parekh and D. M. Tilbury, Feedback Control of Computing Systems, Wiley, 2004.
- I. Marsh and A. Gunnar, Hierarchical caching simulation with visualisation, UKSim, 2013.
- G. Einziger, R. Friedman and B. Manes, "TinyLFU: a highly efficient cache admission policy," ACM Transactions on Storage 13(4), 2017.
Citation
Ian Marsh, Understanding cache dynamics in the network: a software approach, EAI Endorsed Transactions on Scalable Information Systems 3(9), 2016, Paper.
BibTeX
@article{marsh2016cache,
author = {Marsh, Ian},
title = {Understanding cache dynamics in the network: a software approach},
journal = {EAI Endorsed Transactions on Scalable Information Systems},
volume = {3},
number = {9},
year = {2016},
doi = {10.4108/eai.14-12-2015.2262567}
}
Related student thesis
More in IP Networking: NetInf TP: A receiver-driven protocol for ICN data transport →