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:
- 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.
- 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.
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