[Paper Review] Automatic Parallelization of Software Network Functions
Maestro is a tool that automatically parallelizes software network functions (NFs) by analyzing their state access patterns and configuring the NIC's Receive Side Scaling (RSS) to route packets of the same flow to the same core, enabling a shared-nothing architecture that eliminates inter-core coordination. It achieves linear scaling up to PCIe or 100 Gbps line-rate bottlenecks and outperforms hardware transactional memory, even on parallel-unfriendly workloads.
Software network functions (NFs) trade-off flexibility and ease of deployment for an increased challenge of performance. The traditional way to increase NF performance is by distributing traffic to multiple CPU cores, but this poses a significant challenge: how to parallelize an NF without breaking its semantics? We propose Maestro, a tool that analyzes a sequential implementation of an NF and automatically generates an enhanced parallel version that carefully configures the NIC's Receive Side Scaling mechanism to distribute traffic across cores, while preserving semantics. When possible, Maestro orchestrates a shared-nothing architecture, with each core operating independently without shared memory coordination, maximizing performance. Otherwise, Maestro choreographs a fine-grained read-write locking mechanism that optimizes operation for typical Internet traffic. We parallelized 8 software NFs and show that they generally scale-up linearly until bottlenecked by PCIe when using small packets or by 100Gbps line-rate with typical Internet traffic. Maestro further outperforms modern hardware-based transactional memory mechanisms, even for challenging parallel-unfriendly workloads.
Motivation & Objective
- Address the challenge of manually parallelizing software network functions (NFs) while preserving semantics and maximizing performance.
- Reduce developer burden by automating low-level parallelization tasks such as RSS configuration and coordination mechanism selection.
- Enable high-performance NFs on commodity hardware by leveraging symbolic execution to infer flow semantics and state access patterns.
- Achieve linear scaling with core count by minimizing inter-core coordination through intelligent packet steering.
- Outperform existing solutions, including hardware transactional memory, especially on workloads with high flow churn or complex state management.
Proposed method
- Use symbolic execution to analyze a sequential NF implementation and extract constraints that define flow boundaries (e.g., 5-tuples for TCP/UDP flows).
- Construct a comprehensive symbolic model of state access patterns to determine which packets access the same state.
- Employ a constraint solver to generate an RSS hash configuration that maps packets of the same flow to the same CPU core.
- Automatically generate a parallel NF version that uses the configured RSS to enable a shared-nothing architecture with no shared memory coordination.
- Fall back to a fine-grained read-write locking mechanism when shared-nothing is not semantically safe, optimizing for typical Zipfian traffic patterns.
- Integrate with DPDK and the Vigor API to ensure compatibility with existing NF frameworks while preserving correctness.

Experimental results
Research questions
- RQ1Can automatic analysis of flow semantics enable safe and efficient parallelization of software NFs without manual intervention?
- RQ2To what extent can RSS configuration be automated to achieve a shared-nothing architecture that eliminates inter-core coordination?
- RQ3How does the performance of automatically parallelized NFs compare to manually optimized or hardware-accelerated counterparts under diverse workloads?
- RQ4Can symbolic execution and constraint solving be effectively used to infer state access patterns and guide packet distribution in NFs?
- RQ5What is the performance impact of high-churn traffic on automatically parallelized NFs, and how does Maestro mitigate it?
Key findings
- Maestro enables linear scaling of NF performance with the number of cores until limited by PCIe bandwidth or 100 Gbps line-rate, even with small packets.
- For workloads with typical Internet traffic (where most packets belong to a minority of long-lived flows), Maestro’s NAT implementation achieves 55% L1 cache hit rate versus VPP’s 46%, reducing RAM access.
- Maestro’s automatically parallelized NFs outperform hardware transactional memory mechanisms, even on inherently parallel-unfriendly workloads.
- The shared-nothing architecture generated by Maestro eliminates inter-core coordination, resulting in higher performance than lock-based alternatives under typical traffic patterns.
- Maestro’s approach reduces developer effort to a single configuration step, enabling high-performance NFs without requiring low-level expertise in cache coherence or RSS tuning.
- The tool successfully parallelized 8 DPDK-based NFs, with performance improvements validated across diverse workloads including NAT, firewall, and traffic monitor functions.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.