Telecom Networks · Case 16

Video caching, live.

Watch requests arrive, see which videos the edge cache serves, and compare the simulation with the exact model.

Live simulation, no measured network traffic

Model: 1,000 videos · finite Zipf popularity, exponent 0.8 · 5 ms cache hits · 80 ms cache misses. These are assigned virtual delays; the animation speed is only the demonstration pace.

Set up the cache

The cache holds the C most popular videos.
100 / 1,000 videos
Empty cacheAll videos cached

Changing C instantly reclassifies the same saved requests, including the curve and table. It does not create a new random stream.

Editing the seed or request limit resets the stream. Reset repeats the seed; Pause preserves it. Run 100,000 now completes the current stream and sets its limit to 100,000.

Ready. Start the live simulation or run all 100,000 requests immediately.

Requests sampled

0
of 100,000 requests

Simulated hit ratio

—
No requests yet

Analytical hit ratio

—
Exact probability for current C

Simulated mean delay

—
Analytical: —

Does the simulation converge?

C = 100
Cumulative simulated hit ratio compared with its analytical target. The current numbers are also shown in the result cards and comparison table.
Start sampling to see the cumulative hit ratio approach the analytical target.
Cumulative simulationAnalytical target

Random variation is expected. More samples usually bring the estimate closer to the exact probability.

Latest request

WAITING
Video —
Video rank 1 is the most popular.
1
User requests a videoRank is sampled from finite Zipf popularity.
2
Edge cache checks ranks 1–100Popular videos are kept close to the user.
3
Origin server on a missAn uncached video uses the 80 ms delay.
The current request's assigned delay will appear here.

At fast paces this panel shows the most recent request in the displayed batch, not every individual request.

Compare the assignment cache sizes

Cache size
(videos)
Analytical
hit ratio
Simulated
hit ratio
Analytical
delay (ms)
Simulated
delay (ms)

Every row uses the same sampled request stream. The highlighted row is the current C; a custom C adds a row. Delay is the model's per-request delay, not elapsed execution time.

P(i) = i−0.8 / Σk=11000 k−0.8   ·   H(C) = Σi=1C P(i)   ·   E[D] = 5H + 80(1 − H) ms

Reproducibility: this offline browser demo uses the seeded Mulberry32 pseudorandom generator and inverse-CDF sampling on ranks 1–1,000. The Python report simulation uses a different seeded generator, so individual results can differ while estimating the same model. The catalogue, popularity and cache contents are fixed; this demonstration does not model cache replacement, video sizes, queueing or a real network. No files or data are sent anywhere.