Medley: Optimizing Midgress Bandwidth for Commercial Live Streaming CDNs
Haiping Wang (Fudan University and ByteDance), Wanxin Shi (Fudan University), Sandesh Dhawaskar Sathyanarayana (ByteDance), Shu Shi (ByteDance), Feng Qian (ByteDance), Yinghao Yang (Fudan University and ByteDance), La Zuo (Fudan University and ByteDance), Hebin Yu (ByteDance), Ruixiao Zhang (ByteDance), Ruoshi Sun (Fudan University), Yajie Peng (ByteDance), Xiaofei Pang (ByteDance), Ruili Fang (ByteDance), Zhenpeng Zhu (ByteDance), Weiqi Chen (ByteDance), Yang Xu (Fudan University)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 3 · Cloud Systems, Shared and Scalable
Overview
This talk introduces Medley, a novel CDN (Content Delivery Network) architecture designed to tackle the escalating financial burden of midgress bandwidth in commercial live streaming platforms. As live streaming services—ranging from personal sharing to competitive gaming and e-commerce—penetrate daily life, they generate massive real-time video traffic that must be delivered globally. While operators have traditionally focused on optimizing egress bandwidth (traffic sent to end users), the authors discovered that internal traffic between CDN nodes—termed midgress bandwidth—represents a dominant and fast-growing cost bottleneck.

Key moments
- 0:00 Introduction and background of live streaming CDNs
- 2:00 Identifying midgress bandwidth as a major cost bottleneck
- 4:00 Root causes of midgress waste and heterogeneous CDN nodes
- 6:00 Limitations of traditional redirection and introduction of Medley
- 8:00 Core technical challenges and substring splitting design
- 10:00 Dynamic K adaptation and hybrid frame scheduling
- 12:00 Preventing substring blocking and transmission strategies
- 14:00 Production deployment results and conclusion
Medley: Optimizing Midgress Bandwidth for Commercial Live Streaming CDNs
Speakers: Haiping Wang (Fudan University and ByteDance); Wanxin Shi (Fudan University); Sandesh Dhawaskar Sathyanarayana (ByteDance); Shu Shi (ByteDance); Feng Qian (ByteDance); Yinghao Yang (Fudan University and ByteDance); La Zuo (Fudan University and ByteDance); Hebin Yu (ByteDance); Ruixiao Zhang (ByteDance); Ruoshi Sun (Fudan University); Yajie Peng (ByteDance); Xiaofei Pang (ByteDance); Ruili Fang (ByteDance); Zhenpeng Zhu (ByteDance); Weiqi Chen (ByteDance); Yang Xu (Fudan University)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=o17bWCav_vo
Overview
This talk introduces Medley, a novel CDN (Content Delivery Network) architecture designed to tackle the escalating financial burden of midgress bandwidth in commercial live streaming platforms. As live streaming services—ranging from personal sharing to competitive gaming and e-commerce—penetrate daily life, they generate massive real-time video traffic that must be delivered globally. While operators have traditionally focused on optimizing egress bandwidth (traffic sent to end users), the authors discovered that internal traffic between CDN nodes—termed midgress bandwidth—represents a dominant and fast-growing cost bottleneck.
Presented at USENIX NSDI by Haiping Wang on behalf of a joint team from Fudan University and ByteDance, the talk details how Medley addresses this challenge. Rather than relying on traditional strategies that attempt to consolidate user requests onto fewer nodes, Medley fundamentally rethink CDN caching by splitting video streams into multiple dynamic substrings. Each edge node caches only a fraction of the total stream, forcing cooperative retrieval while slashing internal network traffic.
The significance of this work lies in its massive scale and production validation. Deployed across ByteDance’s global live streaming platform—handling peak traffic up to 10 terabytes per second and serving nearly 1 million concurrent users—Medley achieves up to 86% midgress cost reduction compared to standard DNS scheduling without compromising user Quality of Experience (QoE) or business metrics.
Background
▶ Watch: Introduction and background of live streaming CDNs (0:00)
Modern live streaming infrastructure relies on global CDN architectures to distribute video data from origin sources through intermediate caching tiers down to end users. Every byte flowing across these internal links translates directly into real financial expenditures. Historically, systems engineering efforts in video delivery have concentrated on egress bandwidth optimization. However, in large-scale production environments, internal cache traffic between CDN nodes—specifically from source to reflector nodes, and from reflector nodes to edge nodes—has emerged as an equally massive cost driver.
Two primary architectural factors exacerbate this midgress waste:
- DNS-Induced Request Dispersion: Most live CDNs employ local-first DNS scheduling, directing viewers to their geographically nearest edge node. While intuitive for latency, this scatters the viewers of a single live channel across dozens—sometimes over 50—edge nodes simultaneously. Each of these nodes must independently pull and cache the entire video stream from upstream nodes, generating redundant internal traffic.
- Heterogeneous Node Architectures: To scale globally, commercial CDNs deploy a mix of large core clusters and numerous small edge nodes. Large core clusters possess sufficient resources for efficient internal cache sharing, yielding low relative midgress traffic. Conversely, small edge nodes have limited capacity, cannot share caches with one another, and dramatically increase midgress overhead as their deployment footprint expands to improve edge coverage.
Traditional remediation relies on request redirection, consolidating user requests from low-utilization nodes to high-capacity nodes. However, in a heterogeneous CDN comprising nearly 1 million nodes with diverse capacities, small clusters lack the spare capacity to absorb large influxes of redirected traffic. In real-world deployments, redirection can only affect roughly 60% of user requests, leaving the remaining traffic exposed to significant midgress overhead.
Key Findings
▶ Watch: Root causes of midgress waste and heterogeneous CDN nodes (4:00)
The central insight motivating Medley is a shift in the cost equation. Traditional systems attempt to minimize midgress cost by reducing the number of subscribing nodes ($N \times \text{cost per node}$). Because user requests and system resources fluctuate dynamically, this approach hits fundamental hardware capacity walls. Medley alters the variable by shrinking the data volume each node needs to pull: reducing both the number of subscribing nodes and the amount of data per node.
Key findings and results from production deployment include:
- Quantifying the Bottleneck: The authors define a key metric, the MEER (Midgress-to-Egress Bandwidth Ratio). Measurements in standard production environments using DNS-based scheduling revealed a MEER as high as 41%, which dropped only to 23% under traditional sort-redirection strategies.
- Substream Scaling Economics: By splitting a video stream into $K$ substrings, total midgress traffic drops proportionally to approximately $1/K$ of the original cost, bypassing the physical cache capacity limitations of small edge nodes.
- Production Cost Reduction: In a 3-month AB experiment across ByteDance's global platform (handling peak traffic up to 10 Tbps and 1 million concurrent users), Medley achieved an 86% cost reduction compared to standard DNS scheduling, and a 76% reduction compared to redirection strategies.
- QoE Neutrality: Despite aggressive internal traffic reduction, comprehensive tracking of user engagement metrics—including total watch duration and purchase behavior—demonstrated zero degradation in user experience or business KPIs.
Technical Deep Dive
▶ Watch: Core technical challenges and substring splitting design (8:00)
Realizing substream-based delivery requires rearchitecting core mechanisms across the CDN scheduler and client-side playback engine. Medley resolves three foundational technical challenges: adaptive substream sizing, load-balanced frame partitioning, and robust multi-node transmission.
1. Dynamic Substream Count Adaptation ($K$)
Determining the optimal number of substrings ($K$) involves a critical trade-off: a larger $K$ reduces midgress bandwidth but increases system overhead (scheduling complexity and client-side coordination), while a smaller $K$ minimizes overhead at the cost of lower savings. Medley introduces a utility function that integrates three core factors:
- Midgress reduction gain
- Operational and scheduling overhead
- System robustness
Guided by real-time network conditions and node load telemetry, the CDN scheduler dynamically scales $K$ up or down. For instance, when viewer counts decline on a specific channel, the system scales down $K$ (e.g., from 4 substrings to 1) to eliminate unnecessary coordination overhead while preserving savings where viable; conversely, surging viewer counts trigger scaling up to maximize midgress reduction.
2. Hybrid Frame Partitioning Strategy
Naïve partitioning strategies—such as round-robin assignment—introduce severe performance bottlenecks due to the structural heterogeneity of video frames. Specifically, I-frames (keyframes) can be up to 10 times larger than typical P-frames (predictive frames).
- Pure round-robin routes all large I-frames into the first substring, instantly overloading its traffic volume.
- Weighted round-robin balancing current traffic volume causes severe frame starvation; assigning a single massive I-frame to a substring forces it to wait a protracted duration before receiving subsequent frames until alternative substrings accumulate balanced data.
Medley implements a hybrid scheduler that jointly accounts for both frame type and frame size, preventing traffic overload on individual substrings and avoiding playback starvation.
3. Substream Blocking Mitigation
Reconstructing a video client-side from multiple parallel substrings introduces vulnerability to substream blocking. If the network path for one substring experiences poor connectivity or packet loss, the client decoder stalls, delaying startup and harming user experience. Medley incorporates two countermeasures:
- First-Gop Isolation: The system retrieves the initial Group of Pictures (GOP) using a full-stream mode to minimize startup latency, smoothly transitioning to substream delivery thereafter.
- Fast Requesting: The client actively detects when a specific substream is blocked and proactively fetches missing frames from alternative, healthy nodes.
Experimental Setup & Results
▶ Watch: Dynamic K adaptation and hybrid frame scheduling (10:00)
The evaluation of Medley is rooted in large-scale industrial deployment rather than simulated environments:
- Deployment Scale: ByteDance’s global live streaming platform.
- Duration: A rigorous 3-month AB testing period in real production.
- Workload Scale: Peak ping traffic reaching up to 10 terabytes per second, serving nearly 1 million concurrent users.
- Baselines: Standard local-first DNS scheduling and conventional sort-redirection strategies.
- Metrics: MEER (Midgress-to-Egress Bandwidth Ratio), midgress financial cost, start-up latency, playback smoothness, total watch duration, and e-commerce conversion/purchase behavior.
Headline Results:
- Medley achieved an 86% reduction in midgress cost compared to standard DNS scheduling.
- Medley achieved a 76% reduction in midgress cost compared to conventional redirection strategies.
- Business engagement metrics and user QoE metrics (watch duration, purchasing behavior, stall frequency) remained entirely uncompromised throughout the evaluation period.
Practical Implications
▶ Watch: Production deployment results and conclusion (14:00)
For infrastructure teams, CDN operators, and large-scale video platform engineers, Medley proves that internal bandwidth optimization can no longer rely solely on edge consolidation or egress-focused policies. As global live streaming scales, heterogeneous node distributions will continue to amplify midgress costs.
Tradeoffs and Limitations:
- Client-Side Complexity: Substream delivery shifts part of the orchestration burden to the client. Clients must coordinate parallel fetches from multiple distinct CDN nodes and execute real-time reassembly.
- Coordination Overhead: Dynamically adjusting $K$ and managing fast-request failovers requires robust control-plane signalling between the CDN scheduler and client applications, demanding low-latency control loops.
- Applicability: The architecture is specifically optimized for multi-node cached live streaming architectures where content can be modularly partitioned; applicability to ultra-low-latency WebRTC peer-to-peer or non-cacheable real-time interactive voice/video calls differs.
Key Takeaways
- Midgress bandwidth (internal CDN cache traffic) represents a dominant financial bottleneck in modern commercial live streaming platforms, with traditional DNS scheduling yielding MEER values as high as 41%.
- Traditional redirection mechanisms fail in heterogeneous CDNs comprising nearly 1 million nodes due to the insufficient spare capacity of small edge clusters.
- Medley resolves this by splitting video streams into $K$ dynamic substrings, allowing edge nodes to cache fractions of the stream ($1/K$) and drastically reducing total internal traffic.
- A utility-driven dynamic scheduler balances $K$ against operational overhead based on real-time network conditions and viewer counts.
- A hybrid frame-partitioning algorithm successfully prevents both traffic overload and frame starvation caused by the size disparities between I-frames and P-frames.
- Deployed at ByteDance across production environments handling 10 Tbps and 1 million concurrent users, Medley cuts midgress costs by up to 86% with zero degradation in user QoE or business engagement metrics.
About the Speaker(s)
Haiping Wang is a researcher affiliated with Fudan University and ByteDance, presenting work developed collaboratively across both institutions alongside industrial engineering teams from ByteDance and academic researchers from Fudan University. The author group combines systems research expertise in networking and distributed systems with large-scale production deployment experience in commercial live streaming CDNs.
Reviews
- Simon Wisk (Open Source Developer & AI Tooling Expert) — MUST SEE ★★★★★
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)