PerfSight: Performance Diagnosis for Software Dataplanes

Wenfei Wu, Keqiang He, Aditya AkellaInternet Measurement Conference 2015 · DOI

TL;DR

The rise of Network Functions Virtualization (NFV) has created complex "software data planes" susceptible to new performance issues. This paper introduces PerfSight, a system that extracts fine-grained performance data from these software data planes and analyzes it to accurately pinpoint the root causes of problems like resource contention and implementation bugs, all with minimal overhead.

What Problem Does This Paper Address?

Traditionally, network data planes were primarily composed of physical routers and switches. However, the advent of Network Functions Virtualization (NFV) has shifted this paradigm. Now, network functions (like firewalls, load balancers, etc.) are increasingly implemented as software running within virtual machines (VMs) on generic compute servers. This creates a "software data plane" that includes not only traditional network devices but also a complex interplay of software components within the OS, hypervisor, and the VMs themselves.

This new complexity introduces novel performance challenges that are difficult to diagnose with existing tools. These problems can arise from:

  • Resource Misallocation: Software data plane elements not receiving sufficient CPU, memory, or network bandwidth.
  • Contention: Multiple elements or VMs competing for shared resources within the virtualization stack.
  • Buggy Design/Implementation: Performance bugs in the software components themselves.

Unlike hardware data planes where problems are often simpler and localized, software data planes involve a multitude of shared resources and complex interactions. Furthermore, stateful packet processing means that a problem in one component can easily propagate and mask the true root cause, making accurate diagnosis a significant challenge for network operators.

Methods

PerfSight tackles this challenge by adopting a two-pronged approach: comprehensive data collection and intelligent analysis.

  1. Fine-grained Data Collection:
    • Element Abstraction: The software data plane is viewed as a pipeline of logical "elements" (e.g., NIC drivers, virtual switches, middlebox software).
  2. Low-Level Instrumentation: PerfSight instruments these elements to collect statistics on packet counts, byte counts, and I/O time. This instrumentation is designed to be lightweight.
  3. Unified Interface: A generic interface is used to query statistics from diverse elements, abstracting away implementation details.
  4. Agent-Controller Architecture: Agents running on each physical server collect data from local elements and report it to a central controller.
  5. Intelligent Analysis:
    • Decoupled Collection and Analytics: Data collection is separate from analysis, allowing for independent improvement.
  6. Aggregate Diagnostics: PerfSight's diagnostic applications analyze data across multiple elements, VMs, or even tenants to identify patterns.
  7. Specific Diagnostic Applications: * Contention and Bottleneck Detection: Analyzes packet loss at various elements to identify resource contention or under-provisioned VMs. It uses a rule book mapping packet loss locations to potential resource shortages.
  8. Combating Propagation: Infers the state of middleboxes (e.g., ReadBlocked, WriteBlocked, Underloaded, Overloaded) based on I/O statistics and capacity. This allows it to trace problems back through chains of middleboxes to identify the true root cause, even when problems propagate.

Datasets

Not discussed in the paper. The authors describe experimental testbeds and simulations rather than specific public datasets.

Key Insights and Ideas

  • Software Data Planes are Fundamentally Different: The paper strongly argues that the complexity and dynamic nature of software data planes necessitate a new approach to performance diagnosis, distinct from traditional network tools.
  • Low-Level, Granular Data is Crucial: Simply looking at high-level metrics like CPU utilization is insufficient. PerfSight's success hinges on collecting detailed statistics from individual software components.
  • Propagation is a Major Challenge: Problems in one part of the software data plane can easily cascade and obscure the original issue. PerfSight's ability to infer element states and trace propagation is key to overcoming this.
  • Decoupling Data Collection and Analysis: This design choice allows for flexibility and future improvements in both data gathering and diagnostic algorithms.
  • Minimal Overhead is Achievable: A significant achievement is demonstrating that comprehensive data collection can be done with negligible performance impact.

Key Results

  • Accurate Root Cause Detection: PerfSight successfully identified the root causes of performance problems in various scenarios, including resource contention, bottlenecks, and propagation issues.
  • Minimal Overhead: The instrumentation and data collection process imposed very little overhead, typically less than 1% on throughput and latency.
  • Effective Contention Detection: Experiments showed PerfSight could accurately pinpoint packet drops in CPU backlogs and identify memory bandwidth contention.
  • Successful Propagation Diagnosis: In multi-chain scenarios, PerfSight correctly identified the problematic middlebox even when issues propagated through several components.
  • Practical Utility: The paper demonstrates how an operator could use PerfSight to diagnose issues in a multi-tenant environment, leading to corrective actions like scaling up or migrating tasks.

Limitations and Future Work

  • Platform Dependency: The current prototype is implemented for a specific platform (Linux kernel v3.20, Open vSwitch, QEMU). While the authors believe PerfSight is a general solution, porting to other platforms might require effort.
  • Manual Instrumentation: While the authors believe instrumentation can be automated, their current prototype relies on manual instrumentation for some elements.
  • Future Work: The authors suggest that the framework can be extended to support more statistics and diagnostic applications. They also envision its use in more complex NFV deployments and multi-tenant environments. The paper also hints at the potential for automating the instrumentation process.

Summary updated

BibTeX
@inproceedings{wu2015perfsight,
  author = {Wenfei Wu and Keqiang He and Aditya Akella},
  title = {{PerfSight: Performance Diagnosis for Software Dataplanes}},
  booktitle = {Internet Measurement Conference},
  year = {2015},
  doi = {10.1145/2815675.2815698},
}
Figure