Exercises

ex-cc-ch01-01

Easy

A shared-link network has K=5K = 5 users and N=10N = 10 files, each of size FF bits. Each user has cache size M=2M = 2 files. Compute the uncoded worst-case delivery rate and the (preview) MAN delivery rate.

ex-cc-ch01-02

Easy

Prove that for any caching scheme on a shared-link network, R(M)KR(M) \leq K and R(M=N)=0R(M = N) = 0.

ex-cc-ch01-03

Easy

Under Zipf demand with exponent α\alpha and library N=1000N = 1000, show that the cache-hit ratio of popularity caching equals M/NM/N only when α=0\alpha = 0 (uniform demand). Compute the hit ratio at M=100M = 100 for α=0,1\alpha = 0, 1.

ex-cc-ch01-04

Easy

For the shared-link network, explain in one paragraph why the placement phase cannot depend on the demand vector d\mathbf{d}.

ex-cc-ch01-05

Easy

Compute the coded caching gain t=KM/Nt = K M/N for: (a) K=100K = 100, M=10M = 10, N=200N = 200; (b) K=1000K = 1000, M=100M = 100, N=10000N = 10000.

ex-cc-ch01-06

Medium

The scaling gap. Consider two regimes with fixed memory ratio μ=M/N=0.1\mu = M/N = 0.1. (a) Compute RuncR_{\text{unc}} and RMANR_{\text{MAN}} for K=10K = 10, and for K=104K = 10^4. (b) What is the asymptotic ratio Runc/RMANR_{\text{unc}}/R_{\text{MAN}} as KK \to \infty?

ex-cc-ch01-07

Medium

A cache is refreshed over a 24-hour day. Peak demand is 10% of the day (2.4 hours); off-peak the link is idle. In 24 hours, the server must deliver the library once (library refresh), plus Tp/tuseT_p / t_{\text{use}} peak-hour delivery rounds. Let RplacementR_{\text{placement}} and RdeliveryR_{\text{delivery}} be the time-averaged rates. Derive the total traffic cost in files per user per day under popularity caching with M/N=0.1M/N = 0.1, K=100K = 100 users, N=1000N = 1000 files, and 60-second delivery rounds.

ex-cc-ch01-08

Medium

Show that the worst-case delivery rate under popularity caching satisfies Rpop,worst=K(1M/N)R_{\text{pop,worst}} = K (1 - M/N) when KNK \leq N, regardless of the demand distribution. In particular, popularity caching does not help in the worst case.

ex-cc-ch01-09

Medium

Derive the expected rate under popularity caching for i.i.d. Zipf demands: Rexp=K(1HM,α/HN,α)R_{\text{exp}} = K (1 - H_{M,\alpha}/H_{N,\alpha}) where HK,α=n=1KnαH_{K,\alpha} = \sum_{n=1}^{K} n^{-\alpha}. Show that for fixed M/NM/N, Rexp/Runc,worst1R_{\text{exp}} / R_{\text{unc,worst}} \to 1 as α0\alpha \to 0.

ex-cc-ch01-10

Medium

Consider a network where each user has a different-sized cache: user kk has cache MkM_k, with kMk=KM\sum_k M_k = K \cdot M fixed. Show that the minimum worst-case rate under any uncoded scheme is still K(1M/N)K(1 - M/N). That is, heterogeneous caches do not help the uncoded worst case.

ex-cc-ch01-11

Medium

Consider K=2K = 2, N=2N = 2, M=1M = 1, and files of F=2F = 2 bits each: W1=(a1,a2)W_1 = (a_1, a_2), W2=(b1,b2)W_2 = (b_1, b_2). Propose a coded placement + delivery that achieves the MAN rate RMAN=2(11/2)/(1+21/2)=1/2R_{\text{MAN}} = 2 \cdot (1 - 1/2)/(1 + 2 \cdot 1/2) = 1/2 for the demand (d1,d2)=(1,2)(d_1, d_2) = (1, 2).

ex-cc-ch01-12

Hard

Information-theoretic cut-set lower bound (preview). Prove that for any shared-link scheme, R(M)ssMN/sR^*(M) \geq s - \frac{sM}{\lfloor N/s \rfloor} for every integer s[1,min(K,N)]s \in [1, \min(K, N)]. This is the classical cut-set bound of Maddah-Ali–Niesen 2014, which we will develop fully in Chapter 3.

ex-cc-ch01-13

Hard

Non-uniform demand and the end of MAN. Suppose demand is Zipf with α=1.5\alpha = 1.5 (very concentrated). Show by example that popularity caching can achieve an expected rate strictly lower than the MAN worst-case rate for K=100K = 100, N=1000N = 1000, M=100M = 100.

ex-cc-ch01-14

Challenge

Consider a shared-link network where users have independent caches but the library grows with time (new files arrive at rate λ\lambda files per round, old files leave at the same rate). Model the effective popularity distribution as the steady-state of this library evolution and analyze the tradeoff between placement refresh rate and expected delivery rate under popularity caching. Discuss what this implies for hybrid popularity/coded schemes in real CDNs.

ex-cc-ch01-15

Challenge

A fundamental question. Prove or disprove: for any demand distribution PP (not just uniform), the expected delivery rate of any (possibly coded) scheme with per-user cache MM is bounded below by K(1HZipf(M))/(1+KM/N)K(1 - H_{\text{Zipf}}(M))/(1 + K M/N), where HZipfH_{\text{Zipf}} is the concentration correction specific to distribution PP.