Towards Wi-Fi AP-Assisted Content Prefetching for On-Demand TV Series: A Reinforcement Learning Approach

Wen Hu, Yichao Jin, Yonggang Wen, Zhi Wang, Lifeng Sun

Abstract

The emergence of smart Wi-Fi Access Points (APs) equipped with significant storage space presents a unique opportunity to improve Quality of Experience (QoE) in video streaming. Content prefetching at the network edge can reduce startup delays and smooth playback by shifting traffic to off-peak periods. However, varying user patterns and network conditions make optimal prefetching challenging. This paper presents a large-scale measurement study of user behavior and formulates the prefetching problem as a Markov Decision Process (MDP). We propose a reinforcement learning (RL) approach that balances prefetching costs against latency reductions. Our trace-based experiments show that the RL algorithm achieves an 80% hit ratio and precision while reducing operational costs by up to 70% compared to baseline methods.

Introduction

As video streaming dominates global internet traffic, traditional Content Delivery Networks (CDNs) face high deployment costs and performance bottlenecks during peak hours. This often results in poor QoE, characterized by long startup delays and buffering. Smart Wi-Fi routers, acting as edge APs with internal storage, offer a solution by caching content closer to the user. The core challenge lies in deciding what to store and when to download it. Prefetching too aggressively wastes resources, while prefetching too little fails to improve the user experience. This paper addresses this trade-off by leveraging Reinforcement Learning to adapt to unpredictable user watching patterns and time-varying server loads.

Measurement Study and Insights

The study utilizes three significant real-world datasets: Tencent AP Traces (270 million records), iQiyi TV Traces (1.8 million users), and server load traces from a major video provider. Analysis of these datasets yielded two critical insights that inform the system design:

  1. AP Stability is High: Most users exhibit a "dominant" AP (likely a home router) that serves the majority of their requests. As shown in Figure 1, a significant portion of users have a high fraction of their connections concentrated on a single AP, making localized edge caching highly viable.
  2. TV Watching is Predictable: Unlike short-form content, TV series consumption is highly sequential. There is an 82% probability that a user will either continue the current episode or move to one of the next three. Figure 2 illustrates this steep probability jump around the next sequential episodes.
Distribution and cumulative fraction of users based on their connection frequency to a dominant AP.
Cumulative probability of the episode index difference between consecutive viewing sessions.

Methodology

The authors frame the prefetching problem as a Markov Decision Process (MDP). The objective is to minimize a comprehensive cost function that balances:

  • Transmission costs: Higher during peak server load.
  • Storage costs: The overhead of maintaining content on the AP.
  • Latency costs: The penalty incurred when a user requests content not in the cache.
  • Resource competition costs: The impact of prefetching on the user's active bandwidth.

To solve this MDP, a Reinforcement Learning (RL) approach using gradient-based Q-learning with function approximation was developed. This method handles the high dimensionality of TV series catalogs by focusing on likely next episodes and using feature extraction to represent the system state compactly. The RL agent learns to "buy low and sell high," prefetching content during idle periods to avoid peak-hour congestion.

Key Results

Trace-driven simulations demonstrate the superiority of the RL-based online algorithm over traditional baselines (Random, Heuristic, and Ideal Offline):

  • High Accuracy: The system achieved approximately 80% precision and an 80% hit ratio.
  • Efficiency: The RL approach outperformed the heuristic baseline by 1.8x in precision and 1.3x in hit ratio, while being 9x better in precision than a random approach.
  • Cost Savings: Compared to random and heuristic baselines, the RL approach saved 70% and 50% in total costs, respectively, by successfully shifting tasks to off-peak periods.

Conclusion

This work demonstrates that RL-based prefetching on smart Wi-Fi APs can significantly enhance video streaming QoE while maintaining cost efficiency. Future research will explore collaborative prefetching across multiple APs and users, as well as partial prefetching strategies (e.g., caching only the beginning of episodes) to further optimize storage utilization in dynamic content environments.

Summary updated

Abstract

The emergence of smart Wi-Fi APs (Access Point), which are equipped with huge storage space, opens a new research area on how to utilize these resources at the edge network to improve users' quality of experience (QoE) (e.g., a short startup delay and smooth playback). One important research interest in this area is content prefetching, which predicts and accurately fetches contents ahead of users' requests to shift the traffic away during peak periods. However, in practice, the different video watching patterns among users, and the varying network connection status lead to the time-varying server load, which eventually makes the content prefetching problem challenging. To understand this challenge, this paper first performs a large-scale measurement study on users' AP connection and TV series watching patterns using real-traces. Then, based on the obtained insights, we formulate the content prefetching problem as a Markov Decision Process (MDP). The objective is to strike a balance between the increased prefetching&storage cost incurred by incorrect prediction and the reduced content download delay because of successful prediction. A learning-based approach is proposed to solve this problem and another three algorithms are adopted as baselines. In particular, first, we investigate the performance lower bound by using a random algorithm, and the upper bound by using an ideal offline approach. Then, we present a heuristic algorithm as another baseline. Finally, we design a reinforcement learning algorithm that is more practical to work in the online manner. Through extensive trace-based experiments, we demonstrate the performance gain of our design. Remarkably, our learning-based algorithm achieves a better precision and hit ratio (e.g., 80%) with about 70% (resp. 50%) cost saving compared to the random (resp. heuristic) algorithm.
BibTeX
@article{hu2018towards,
  author = {Wen Hu and Yichao Jin and Yonggang Wen and Zhi Wang and Lifeng Sun},
  title = {{Towards Wi-Fi AP-Assisted Content Prefetching for On-Demand TV Series: A Reinforcement Learning Approach}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2018},
  url = {https://openreview.net/forum?id=yUn4ruYyA0u},
}
Figure