Toward Wi-Fi AP-Assisted Content Prefetching for an On-Demand TV Series: A Learning-Based Approach

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

TL;DR

This paper proposes an intelligent content prefetching system that leverages the storage capacity of smart Wi-Fi Access Points (APs) to improve video streaming quality. By applying Reinforcement Learning to real-world user behavior and network traffic data, the authors developed an approach that achieves an 80% hit ratio while reducing operational costs by up to 70% compared to traditional methods.

What Problem Does This Paper Address?

As video streaming dominates global internet traffic, traditional Content Delivery Networks (CDNs) struggle with high deployment costs and occasional performance bottlenecks during peak hours. This leads to poor Quality of Experience (QoE) for users, characterized by long startup delays and frequent buffering.

While "smart" Wi-Fi routers (APs with internal storage and operating systems) offer a way to cache content at the very edge of the network, deciding what to store and when to download it is difficult. Prefetching too aggressively wastes storage and bandwidth (monetary cost), while prefetching too little fails to improve the user experience. The challenge is compounded by unpredictable user watching patterns and time-varying server loads.

Methods

The authors frame the prefetching problem as a Markov Decision Process (MDP) and solve it using a Reinforcement Learning (RL) approach. Key components include:

  • Measurement Study: Before building the model, the authors analyzed massive real-world datasets to identify patterns in how users connect to APs and watch TV series.
  • Cost Model: They designed a comprehensive cost function that balances four factors: transmission costs (which increase when the server is busy), storage costs, latency costs (the "penalty" for a cache miss), and resource competition costs (the impact of prefetching on a user's current bandwidth).
  • Q-Learning with Function Approximation: To handle the "curse of dimensionality"—the massive number of possible states and actions in a TV series catalog—the authors used gradient-based Q-learning. They reduced the state space by focusing on the most likely next episodes and used feature extraction to represent the system state compactly.
  • Baselines: They compared their RL approach against three others: a Random algorithm (lower bound), an Ideal Offline algorithm (upper bound with perfect future knowledge), and a simple Heuristic (always prefetching the next few episodes).

Datasets

The study relies on three significant real-world datasets:

  1. Tencent AP Traces: 270 million user-AP association records from March to April 2015, used to understand connection stability.
  2. iQiyi TV Traces: 1.8 million users' watching history across 76,000 episodes and 8,500 TV series, used to model transition probabilities between episodes.
  3. Server Load Traces: Real traffic data from a major video provider used to model and predict peak/off-peak periods.

Key Insights and Ideas

  • AP Stability is High: The study found that 80% of users visit fewer than 20% new APs per day. Most users have a "dominant" AP (likely their home router) that serves over 50% of their requests. This makes the home AP the perfect candidate for localized caching.
  • TV Watching is Predictable: Unlike short social media clips, TV series consumption is highly sequential. There is an 82% probability that a user will either stay on the current episode or move to one of the next three.
  • Server-Load Awareness: The RL agent learns to "buy low and sell high." It prefetches content when the global server load is low (cheap transmission) to avoid fetching during peak hours (expensive/congested).
  • The Precision-Hit Ratio Trade-off: Simple heuristics can achieve a high hit ratio by prefetching everything, but they have terrible precision (wasted resources). The RL approach finds the "sweet spot" where both metrics are high.

Key Results

The proposed RL-based online algorithm demonstrated significant performance gains in trace-driven simulations:

  • High Accuracy: It achieved approximately 80% precision and an 80% hit ratio.
  • Superiority over Baselines: The RL approach was 9x better in precision and 6x better in hit ratio than the random approach. It also outperformed the heuristic baseline by 1.8x in precision and 1.3x in hit ratio.
  • Cost Efficiency: Compared to the random and heuristic baselines, the RL approach saved 70% and 50% in total costs, respectively.
  • Adaptability: The system successfully shifted prefetching tasks to idle periods, effectively smoothing out the server load.

Limitations and Future Work

  • Single-User Focus: The current model focuses on the relationship between one user and one dominant AP. The authors acknowledge that future work should explore collaborative prefetching, where multiple APs or multiple users on the same AP share resources.
  • Static Content Assumptions: The model assumes the content catalog (the TV series available) is relatively static over short periods. It may need adjustments for platforms with high churn in trending content.
  • Episode-Level Granularity: The system treats an entire episode as a single unit. Future iterations could explore partial prefetching (e.g., just the first 5 minutes) to further reduce storage pressure while maintaining low startup latency.

Summary updated

Abstract

The emergence of smart Wi-Fi access points (AP), 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 (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. The objective is to strike a balance between the increased prefetching and 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{hu2018toward,
  author = {Wen Hu and Yichao Jin and Yonggang Wen and Zhi Wang and Lifeng Sun},
  title = {{Toward Wi-Fi AP-Assisted Content Prefetching for an On-Demand TV Series: A Learning-Based Approach}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2018},
  url = {https://openreview.net/forum?id=yUn4ruYyA0u},
}

Loading related content...

Figure