Abstract
As organizations migrate infrastructure to the cloud, Network Function Virtualization (NFV) has emerged as a cost-effective alternative to dedicated hardware middleboxes. However, outsourcing network functions like firewalls and intrusion detection systems typically requires sharing sensitive plaintext security policies with cloud providers. This paper addresses the "Private NFV" problem, proposing a framework where cloud providers can process network functions on encrypted packets without revealing underlying rules or packet contents. We present three cryptographic constructions—based on Fully Homomorphic Encryption (FHE), Boneh-Goh-Nissim (BGN) encryption, and Public-key Encryption with Keyword Search (PEKS)—and demonstrate their practical feasibility for stateful network functions.
1. Introduction
The shift toward cloud-based infrastructure has popularized Network Function Virtualization (NFV), which replaces proprietary hardware with software-based middleboxes running on commodity servers. While NFV offers scalability and cost benefits, it introduces significant privacy risks. Currently, cloud providers must access an organization's network policies in plaintext to execute them. These policies often contain sensitive information regarding network topology, internal IP addresses, and defensive strategies.
To bridge this gap, we explore the feasibility of Private NFV. The goal is to allow a cloud provider to perform "match-action" operations on network traffic while maintaining the confidentiality of both the packets and the processing rules.
2. Methodology
We model network functions as a pair of functions: a matching function $m(x)$ and an action function $a(x)$. The matching function determines if a specific rule applies to a packet $x$, while the action function defines the modification or routing decision to be applied.
To implement this model privately, we propose three distinct cryptographic approaches:
- Fully Homomorphic Encryption (FHE): While theoretically ideal for arbitrary computation on encrypted data, current FHE schemes remain computationally prohibitive for real-time networking.
- BGN-based Scheme: Leveraging the Boneh-Goh-Nissim cryptosystem, this scheme supports unlimited additions and a single multiplication on ciphertexts. It is designed for a Strong Adversary model, where the cloud provider can observe the transformed network function and all encrypted traffic.
- PEKS-based Scheme: Utilizing Public-key Encryption with Keyword Search, this scheme is optimized for a Weak Adversary model. It assumes the presence of a semi-trusted "entry middlebox" that performs preliminary packet shuffling to obscure which fields are being evaluated.
A key contribution of this work is the support for stateful network functions, such as firewalls that track TCP connection states. We utilize the PEKS-based scheme to manage dynamic, encrypted state tables, allowing the cloud to update and query connection states without decrypting the table entries.
3. Results
The proposed schemes were implemented in C using the RELIC cryptographic library and evaluated on a standard machine (2.4 GHz CPU, 4GB RAM). Evaluation focused on a standard 5-tuple firewall use-case (Source/Destination IP, Source/Destination Port, and Protocol).
Our results demonstrate that private processing is within the realm of practicality. Under the Weak Adversary (PEKS) model, a packet can be processed against a single firewall rule in approximately 109 ms, scaling to 250 ms for 10 rules. The Strong Adversary (BGN) model, offering higher security, processes a single rule in 180 ms and 10 rules in 1,208 ms.
While the single-threaded proof-of-concept achieved a throughput of approximately 4 packets per second (pps), performance scales linearly with the number of rules. We estimate that a multi-threaded implementation on high-performance hardware could exceed 2,300 pps, bringing the technology closer to production requirements.
4. Discussion and Future Work
This research demonstrates that by abstracting complex network middleboxes into generic mathematical formulas, specialized cryptographic tools can be effectively applied to the networking domain. The work highlights a fundamental trade-off between privacy and performance: the PEKS-based scheme offers superior speed for a slightly relaxed security model, while BGN provides robust protection at a higher computational cost.
Future work will focus on achieving "line-rate" performance (Gigabits per second) through hardware acceleration and multi-threading. Additionally, we aim to expand the scope of supported functions to include traffic shaping and integrate these solutions into mainstream NFV frameworks like OPNFV and ClickOS.
Summary updated