Enhancing Resource Management of the World's Largest PCDN System for On-Demand Video Streaming

Ruixiao Zhang, Haiping Wang, Shu Shi, Xiaofei Pang, Yajie Peng, Zhichen Xue, Jiangchuan LiuUSENIX ATC 2024

TL;DR

This paper introduces PCDN+, an enhanced Content Delivery Network (CDN) that leverages cost-effective edge resources for video streaming. By introducing dynamic, centralized resource allocation and controlled decentralized downloading, PCDN+ significantly improves resource utilization, reduces costs, and enhances streaming performance compared to its predecessor.

What Problem Does This Paper Address?

The explosive growth of video streaming has led to massive bandwidth costs for content providers, often relying on traditional Content Delivery Networks (CDNs). While CDNs offer reliability, their expense is a major burden, especially for services with large user bases and free offerings. To combat this, ByteDance developed PCDN, a system that utilizes cheaper, heterogeneous edge resources as a CDN alternative. However, the initial PCDN suffered from resource imbalances: some edge nodes were overloaded, leading to performance degradation, while others were underutilized, wasting potential. This paper addresses the challenge of effectively managing these heterogeneous, cost-efficient edge resources to achieve both performance and cost savings.

Methods

The core innovation is PCDN+, an evolution of the original PCDN. It introduces two key components:

  • Dynamic Centralized Logic (Server-side): This logic enhances the PCDN server with a "Profiling Module" and an "Allocation Stage." The profiling module analyzes user and edge node characteristics (ISP, location, NAT type, etc.) to predict download speeds. The allocation stage then models resource management as an optimization problem to minimize costs while meeting performance requirements. This allows for a global view and dynamic adaptation of resource allocation.
  • Controlled Decentralized Logic (Client-side): This logic addresses the uncontrolled downloading behavior of the original PCDN. It implements a "multi-source joint bandwidth allocation algorithm" that dynamically adjusts the maximum window size for each connection. This ensures on-demand resource utilization and prevents individual nodes from becoming bottlenecks, thereby coordinating with the centralized logic.

Datasets

Not discussed in the paper. The evaluation is based on ByteDance's real-world production environment and internal A/B testing platforms.

Key Insights and Ideas

  • Edge Resources are Viable but Challenging: The paper confirms that cost-effective edge resources can significantly reduce CDN costs but highlights the substantial engineering effort required to manage their heterogeneity and unreliability.
  • Static Allocation is a Bottleneck: The original PCDN's static, rule-based server-side allocation (prioritizing location and price) led to resource imbalances. A dynamic, global-view approach is crucial.
  • Uncontrolled Client Downloads Waste Resources: The free-for-all nature of client-side downloading in the original PCDN led to unpredictable resource consumption and prevented effective optimization.
  • Centralized Intelligence + Decentralized Control = Success: The PCDN+ architecture, combining a smart, centralized decision-maker with a responsive, decentralized executor, is key to achieving both efficient resource utilization and high performance.
  • Profiling is Crucial for Dynamic Allocation: Accurately profiling users and edge nodes based on multiple features is essential for the centralized logic to make informed allocation decisions.
  • Balancing Cost and Quality is an Optimization Problem: The paper frames resource allocation as an optimization problem, allowing operators to tune the trade-off between cost reduction and service quality.

Key Results

  • Resource Imbalance Mitigation: PCDN+ significantly reduced overloaded nodes (from over 20% to almost none) and improved the utilization of underutilized nodes (reducing the percentage of nodes with <40% utilization from 30% to 20%).
  • Cost Savings: The workload on low-price resources increased significantly, leading to estimated cost savings of 8-10% compared to PCDN. The proportion of low-cost resources in the system increased to over 50%.
  • Performance Improvement:
    • Task speed improved by approximately 5.4% on average.
  • High-quality return rates improved by over 20%.
  • Abnormal connection rates decreased by 6.9% to 7.6%.
  • Loss rates decreased by 12.0% to 13.3%.
  • Controllability: PCDN+ achieved very low control errors (50th percentile consistently below 0.04), demonstrating effective resource control.
  • Traffic Share: PCDN+ deployment led to a rapid increase in traffic handled by the system, reaching over 35% of ByteDance's VoD traffic by June 2023.

Limitations and Future Work

  • Static Feature Selection: The feature selection for the profiling module is currently static and heuristic. Future work could explore data-driven prediction models for more dynamic and accurate profiling.
  • Congestion Control for MPD: The paper acknowledges that congestion can arise in MPD scenarios due to last-mile competition. Exploring more efficient congestion control algorithms tailored for MPD is an area for future research.
  • Head-of-Line Blocking: PCDN nodes can be susceptible to disconnections and quality instability, leading to head-of-line blocking. More efficient data scheduling and recovery algorithms are being explored.
  • CDN-PCDN Integration: Currently, CDNs act as a backup for PCDN. Future work aims to consolidate CDN and PCDN management for more precise resource control and a more robust, heterogeneous delivery network, potentially enabling simultaneous downloading from both.

Summary updated

BibTeX
@inproceedings{zhang2024enhancing,
  author = {Ruixiao Zhang and Haiping Wang and Shu Shi and Xiaofei Pang and Yajie Peng and Zhichen Xue and Jiangchuan Liu},
  title = {{Enhancing Resource Management of the World's Largest PCDN System for On-Demand Video Streaming}},
  booktitle = {USENIX ATC},
  year = {2024},
  url = {https://openreview.net/forum?id=wGDQHcBVL3},
}
Figure