Abstract
This paper introduces Approx, a polynomial-time approximation algorithm designed to construct cost-effective and highly reliable overlay networks for live streaming. By modeling the network as a three-stage system comprising Sources, Reflectors, and Sinks, the authors provide a solution that is provably within a logarithmic factor of the optimal cost while adhering to strict packet-loss thresholds. This methodology is currently employed by Akamai to deliver high-fidelity global events.
Introduction
Live streaming over the public Internet faces significant challenges, primarily server bottlenecks and network "middle-mile" bottlenecks where packets are frequently lost or delayed. Traditional multicast trees are fragile; a single node failure can disconnect all downstream viewers. To achieve "TV-quality" fidelity, providers utilize overlay networks that transmit multiple redundant copies of a stream through diverse paths.
The core challenge lies in Overlay Network Construction: selecting reflectors and routing streams to minimize costs while ensuring end-to-end packet loss remains below a critical threshold. This problem is formulated as an Integer Program (IP), which is typically NP-hard to solve optimally for large-scale networks.
Methodology
The authors' primary contribution is the Approx algorithm, which utilizes a three-step rounding process to find near-optimal solutions efficiently:
- LP Relaxation: Solving a relaxed version of the problem where variables can be fractional (e.g., using 0.5 of a reflector).
- Randomized Rounding: Using probabilities derived from the fractional solution to decide which reflectors to activate and which streams to route.
- Modified GAP Rounding: Finalizing connections between reflectors and sinks using a modified Generalized Assignment Problem (GAP) approach. This involves constructing a flow graph and solving a min-cost max-flow problem to ensure reflector fan-out constraints are respected.
A key innovation is the transformation of packet loss probabilities into additive weights using negative logarithms, allowing the reliability constraint to be treated as a simple linear inequality.
Experimental Setup
The algorithm was evaluated using realistic traces from Akamai’s global live streaming network. The testing included:
- Network Topology: Various sizes, from small (4x7x14) to large-scale deployments (179x44x414).
- Loss Data: Actual Internet loss measurements collected during "Low Loss" (nights), "High Loss" (peak hours), and "Average Loss" periods.
- Media Formats: Data categorized by anonymized formats representing Windows Media, Real Media, and QuickTime.
Key Insights
- Set Cover Connection: The problem is a generalization of the "Set Cover" problem, establishing a theoretical floor for approximation performance.
- Redundancy as a Mask: Instead of seeking a single perfect path, the algorithm focuses on finding a set of paths whose combined failure probability is negligible.
- Practical Stability: While theory suggests a logarithmic multiplier ($c \log n$), empirical results show the solution stabilizes with very small constants (around 6), indicating superior real-world performance compared to worst-case theory.
- ISP Resilience: The model can be extended to "color" reflectors by ISP, ensuring sinks receive streams from diverse network providers to mitigate correlated failures.
Results
- Performance Bounds: Approx is guaranteed to be within $O(\log n)$ of the optimal cost. In transmission-only cost scenarios, it is within a factor of 2.
- Scalability: Approx successfully handled massive networks with 800,000 variables in reasonable time, where exact IP solvers failed even on medium-sized problems.
- Cost-Quality Trade-off: In high-loss scenarios, Approx remained the only consistently feasible choice for the largest problem sizes, maintaining reliability where other methods struggled.
Conclusion and Future Work
While the framework for handling correlated failures is robust, the current approximation constants are high. Future research will focus on incremental algorithms to allow for dynamic rerouting in response to sudden local disruptions, moving beyond the current periodic reconstruction model. Additionally, the algorithm's lack of reliance on "metric space" assumptions makes it highly applicable to the complex, non-metric realities of the Internet.
Summary updated