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.
Introduction
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:
- Single Service Chain: They propose a two-stage randomized algorithm.
- 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.
- 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.
- Multiple Concurrent Service Chains: When multiple chains share resources, 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.
Key Insights
- Decoupling Routing from Placement: 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, eliminating the need for VNF migration.
- 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.
Evaluation and Results
The researchers evaluated their algorithms using trace-driven simulations based on real-world MSR Cambridge Traces (specifically the CAMRESHMSA01-lvm0 volume), normalized to represent traffic rates peaking at 400Gbps.
Key Findings
- Cost Efficiency: In simulations, the proposed algorithms reduced total provisioning costs by up to 70% compared to static provisioning (where you 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 are identical. Real-world datacenters often have heterogeneous hardware which could complicate the bin-packing phase.
- Bottleneck Focus: Experiments primarily focused on CPU. Future work could explore scenarios where memory, disk I/O, and network bandwidth are simultaneously constrained.
- Stateful VNFs: The paper assumes VNF instances can be easily spun up or down. However, "stateful" VNFs require complex state transfer mechanisms that aren't fully accounted for in the current cost model.
Summary updated