Virtual machine migration planning in software-defined networks

Huandong Wang, Yong Li, Ying Zhang, Depeng Jin

This paper, "Virtual Machine Migration Planning in Software-Defined Networks," presents a scalable approach to managing one of the most common yet resource-intensive tasks in modern data centers: live virtual machine (VM) migration. By leveraging the flexibility of Software-Defined Networking (SDN), the authors propose a method to orchestrate multiple simultaneous migrations, significantly reducing total migration time and service downtime.

TL;DR

The authors develop a Fully Polynomial Time Approximation (FPTA) algorithm to schedule multiple simultaneous VM migrations and allocate network bandwidth in SDN environments. Their approach achieves near-optimal performance—reducing migration time by up to 40% compared to state-of-the-art methods—while remaining computationally feasible for large-scale data centers.

What Problem Does This Paper Address?

Live migration allows VMs to move between physical hosts without interrupting services, which is essential for load balancing and energy saving. However, migrations consume significant network bandwidth. When hundreds of VMs need to move at once, they often compete for the same bottleneck links.

Existing solutions typically move VMs one-by-one (which is slow) or use rigid single-path routing. The core challenge is finding an intelligent way to sequence these migrations and allocate bandwidth across multiple paths to minimize the "Total Migration Time"—the time from the start of the first migration to the end of the last one.

Methods

The authors frame the migration planning problem as a Mixed Integer Programming (MIP) problem. Because directly minimizing total time is mathematically complex, they introduce a clever proxy objective: maximizing the "net transmission rate." This represents the speed at which the total remaining memory across all migrating VMs is being reduced.

To solve this NP-hard problem at scale, they propose the FPTA algorithm, which consists of two main steps:

  1. Linear Approximation: They simplify the MIP by relaxing integer constraints and focusing on the primary bandwidth variables, turning it into a Linear Programming (LP) problem.
  2. Fully Polynomial-time Approximation Scheme (FPTAS): They adapt a primal-dual algorithm for maximum multicommodity flow. This allows them to find a solution within a guaranteed $(1+\epsilon)$ factor of the optimal in polynomial time.

The system architecture (see Figure 1) uses an SDN controller for global network visibility and a cloud manager like OpenStack to track VM memory states and dirty page rates.

Figure 1

Datasets

The researchers evaluated their algorithm using two distinct network topologies:

  • PRV1: A topology representing a private enterprise data center in the Midwestern United States.
  • B4: Google’s inter-datacenter WAN topology, consisting of 12 data centers connected by 19 links.

Simulations involved varying the number of migrations (up to 100), VM memory sizes (1GB to 10GB), and background traffic levels.

Key Insights and Ideas

  • The "Net Transmission Rate" Proxy: The most significant "aha moment" is realizing that maximizing the instantaneous rate of "clean" data transfer effectively minimizes the total duration of the entire migration batch.
  • Multipath is Mandatory: Unlike traditional routing, SDN allows migration traffic to be split across multiple paths. This flexibility is crucial for bypassing bottlenecks when multiple VMs are moving simultaneously (illustrated in Figure 3).
  • Iterative Efficiency: The model accounts for the iterative nature of live migration (pre-copying rounds), where pages modified during one round must be re-sent in the next (see Figure 4).
Figure 3
Figure 4

Key Results

  • Near-Optimal Performance: The FPTA algorithm's results were within 10% of the optimal solution found by exhaustive MIP solvers.
  • Significant Speedups: Compared to standard "one-by-one" migration, FPTA is nearly 10 times faster when handling 100 VMs (see Figure 5a).
  • Better than Grouping: It reduced total migration time by 40-50% and service downtime by 20-22% compared to state-of-the-art "grouping" algorithms.
  • Scalability: While exact solvers can take over an hour for a medium-sized network, FPTA provides solutions in seconds, scaling polynomially with the number of migrations (see Figure 6d).
Figure 5a
Figure 6d

Limitations and Future Work

The authors assume a constant page dirty rate (the speed at which a VM modifies its memory) during the migration process. In reality, this rate can be highly volatile depending on the application workload. Future work could involve developing adaptive scheduling that reacts to real-time changes in VM memory activity. Additionally, while the paper focuses on network bottlenecks, integrating CPU and memory constraints at the source and destination hosts more deeply into the optimization could further refine the results.

Summary updated

BibTeX
@inproceedings{wang2015virtual,
  author = {Huandong Wang and Yong Li and Ying Zhang and Depeng Jin},
  title = {{Virtual machine migration planning in software-defined networks}},
  booktitle = {INFOCOM},
  year = {2015},
  doi = {10.1109/infocom.2015.7218415},
}
Figure