Abstract
Live video streaming presents significant cost challenges for Content Delivery Networks (CDNs). To mitigate these costs, Viewer-to-Viewer (V2V) overlays using WebRTC allow viewers to share video chunks. This paper explores optimizing neighbor selection—the process of determining which peers should share data—using machine learning. By deploying a neural network-based system into a live production environment, the authors demonstrate that moving beyond simple geographic heuristics to a data-driven approach can reduce rebuffering by 39% and increase P2P efficiency by 17%.
Introduction
The delivery of live video content is resource-intensive, traditionally requiring a dedicated stream for every viewer. Hybrid architectures combine CDNs with V2V overlays to offload traffic. However, the effectiveness of V2V depends heavily on "neighbor selection." Legacy systems often rely on proximity heuristics, assuming peers in the same city or ISP are optimal. This approach fails to account for heterogeneous network conditions, such as varying link qualities between mobile and fiber connections. Suboptimal neighbor selection leads to "stalls" or rebuffering, forcing a fallback to the expensive CDN.
System Architecture
The researchers implemented a data-driven neighbor selection framework integrated into a production streaming service. The architecture consists of several key components: a Tracker that manages peer registration and neighbor suggestions, an Online Feature Store for real-time performance tracking, and a TensorFlow Serving instance for model inference.
As shown in the figure above, the system collects logs from viewers (organized into buckets for A/B testing) to train models offline. During live operation, the Tracker requests neighbor selections from the ML server, which joins real-time features from the Online Feature Store to rank potential peers. To maintain computational efficiency, the system evaluates a random sample of 100 potential neighbors rather than the entire global pool.
Methodology
The core of the system is a 4-layer fully connected neural network designed to predict potential throughput between viewer pairs. The authors evaluated four incremental feature sets:
- fs1 (Basic Geography): City, Country, and ISP.
- fs2 (Contextual Metadata): Channel ID and device type.
- fs3 (Link Quality): The viewer's current CDN download speed.
- fs4 (Historical Performance): The potential neighbor's historical upload performance.
Training was conducted using 14 days of historical production logs, which was identified as the optimal window for capturing usage patterns without relying on outdated data.
Experimental Results
The system was tested "in the wild" using the EasyBroadcast production platform, involving tens of thousands of real users across Europe and North Africa. The best-performing model, NN14-fs4, significantly outperformed the standard city-based geographic selection ("Geo"):
- Rebuffering: 39% reduction in events, the most critical user experience metric.
- V2V Efficiency: 17% increase in throughput offloaded from the CDN.
- Latency: 26% lower end-to-end delay between peers.
- Stability: 37% fewer lost chunks and 20% fewer quality switches.
Discussion and Insights
A key finding was that maximizing throughput serves as a universal proxy for overall Quality of Service (QoS). Interestingly, a model that ignored geography entirely (NN14-nums) performed poorly, often selecting fast but distant neighbors, leading to high latency. This suggests that while geography is an insufficient sole decider, it remains a necessary constraint. Additionally, hardware optimizations were evident, with MacOS-to-MacOS links consistently showing superior performance.
Conclusion
This work demonstrates the viability and impact of deploying ML-based neighbor selection in large-scale production environments. By moving from static heuristics to predictive models, streaming providers can significantly improve user experience while reducing infrastructure costs. Future work will explore client-side intelligence to further refine peer prioritization and address "cold start" challenges for new channels.
Summary updated