Online VNF Scaling in Datacenters

Xiaoke Wang, Chuan Wu, Franck Le, Alex X. Liu, Zongpeng Li, Francis Chi-Moon Lau

TL;DR

This paper introduces efficient online algorithms for dynamically scaling Virtualized Network Functions (VNFs) in datacenters without needing to predict future traffic. By balancing the trade-off between operational power costs and the overhead of launching new instances, the authors achieve a near-optimal competitive ratio of $e/(e-1)$ for single service chains and a constant-factor guarantee for multiple concurrent chains.

What Problem Does This Paper Address?

In the world of Network Function Virtualization (NFV), traditional hardware middleboxes (like firewalls and load balancers) are replaced by software running on virtual machines. While this offers incredible flexibility, it introduces a complex management challenge: dynamic scaling.

Network traffic is notoriously "bursty." To save money, operators want to shut down VNF instances when traffic is low. However, launching a new VNF isn't free—it involves transferring VM images and booting systems, which incurs a "deployment cost." The core challenge is making real-time decisions: Should we keep an idle VNF running (consuming power) or shut it down (risking a deployment cost if traffic spikes again)? Because future traffic is unknown, this is a classic "online" optimization problem where every decision must be made without a crystal ball.

Methods

The authors tackle the problem in two scenarios:

  1. Single Service Chain: They propose a two-stage randomized algorithm.
  2. Pre-planning: They first solve a "maximum traffic" bin-packing problem to determine a master placement strategy. This ensures that as VNFs scale up or down, they never need to be migrated between servers—a process that is costly and disruptive.
  3. Randomized Ski-Rental: They adapt the classic "ski-rental" algorithm to decide when to terminate idle VNFs. By using a randomized "deadline," they prove a competitive ratio of $e/(e-1) \approx 1.58$, meaning their online cost is never more than ~58% higher than the theoretical offline optimal.
  4. Multiple Concurrent Service Chains: When multiple chains share resources, the "maximum traffic" trick doesn't work as easily. Instead, they use a Minimal Weight Matching algorithm. In each time slot, they calculate the ideal VNF patterns needed and use the Kuhn-Munkres algorithm to map these patterns to physical servers in a way that minimizes the number of new boots required.

Datasets

The researchers evaluated their algorithms using trace-driven simulations based on real-world data:

  • MSR Cambridge Traces: Specifically, a week of I/O traces from the CAMRESHMSA01-lvm0 volume.
  • Traffic Modeling: They normalized these traces to represent varying input traffic rates (peaking at 400Gbps) to test the algorithms' responsiveness to fluctuating loads.

Key Insights and Ideas

  • Decoupling Routing from Placement: The authors discovered that the complex problem of routing traffic between VNFs can be simplified. If you know the minimum number of VNF instances required to handle the current traffic, the routing effectively "takes care of itself" if the placement is handled correctly.
  • The Migration-Free Guarantee: By pre-calculating a placement for the maximum possible traffic, they ensure that any lower traffic level is simply a subset of that placement. This elegantly eliminates the need for VNF migration, which is a major headache in live networks.
  • Ski-Rental Analogy: The decision to keep a VNF running (paying "rent" in power) vs. killing it and restarting it later (paying a "purchase" price in deployment cost) perfectly maps to the ski-rental problem, allowing them to leverage decades of algorithmic theory for optimal bounds.

Key Results

  • Cost Efficiency: In simulations, the proposed algorithms reduced total provisioning costs by up to 70% compared to static provisioning (where you keep enough VNFs running to handle peak load at all times).
  • Superiority over RHC: Their algorithm outperformed Receding Horizon Control (RHC) with zero lookahead, especially when deployment costs were high relative to operational costs.
  • Stability: The competitive ratio remained stable across different ratios of deployment-to-operational costs, proving the algorithm's robustness.
  • Computational Speed: The algorithms are shown to run in polynomial time, making them practical for real-time datacenter management.

Limitations and Future Work

  • Homogeneous Servers: The current model assumes servers in the datacenter are identical. While the authors claim this is "without loss of generality," real-world datacenters often have heterogeneous hardware which could complicate the bin-packing phase.
  • Bottleneck Focus: The experiments primarily focused on CPU as the main resource bottleneck. Future work could explore more complex scenarios where memory, disk I/O, and network bandwidth are simultaneously constrained.
  • Stateful VNFs: The paper assumes that VNF instances can be easily spun up or down. However, "stateful" VNFs (like those maintaining active TCP sessions) require complex state transfer mechanisms that aren't fully accounted for in the cost model.

Summary updated

Abstract

Network Function Virtualization (NFV) is a promising technology that promises to significantly reduce the operational costs of network services by deploying virtualized network functions (VNFs) to commodity servers in place of dedicated hardware middleboxes. The VNFs are typically running on virtual machine instances in a cloud infrastructure, where the virtualization technology enables dynamic provisioning of VNF instances, to process the fluctuating traffic that needs to go through the network functions in a network service. In this paper, we target dynamic provisioning of enterprise network services - expressed as one or multiple service chains - in cloud datacenters, and design efficient online algorithms without requiring any information on future traffic rates. The key is to decide the number of instances of each VNF type to provision at each time, taking into consideration the server resource capacities and traffic rates between adjacent VNFs in a service chain. In the case of a single service chain, we discover an elegant structure of the problem and design an efficient randomized algorithm achieving a e/(e-1) competitive ratio. For multiple concurrent service chains, an online heuristic algorithm is proposed, which is O(1)-competitive. We demonstrate the effectiveness of our algorithms using solid theoretical analysis and trace-driven simulations.
BibTeX
@inproceedings{wang2016online,
  author = {Xiaoke Wang and Chuan Wu and Franck Le and Alex X. Liu and Zongpeng Li and Francis Chi-Moon Lau},
  title = {{Online VNF Scaling in Datacenters}},
  booktitle = {CLOUD},
  year = {2016},
  url = {https://openreview.net/forum?id=NNWpiHMgrV},
}

Loading related content...

Figure