[Paper Review] Correctness and Performance for Stateful Chained Network Functions
CHC is a novel NFV framework that ensures chain-wide correctness (COE) and high performance in stateful, dynamically managed network function (NF) chains by externalizing state to a shared in-memory store and using logical clocks and metadata for consistent state management. It achieves 9.42Gbps per-NF throughput with under 0.6μs latency overhead and enables fast, correct recovery from failures while suppressing duplicate updates.
Network functions virtualization (NFV) allows operators to employ NF chains to realize custom policies, and dynamically add instances to meet demand or for failover. NFs maintain detailed per- and cross-flow state which needs careful management, especially during dynamic actions. Crucially, state management must: (1) ensure NF chain-wide correctness and (2) have good performance. To this end, we built ame, an NFV framework that leverages an external state store coupled with state management algorithms and metadata maintenance for correct operation even under a range of failures. Our evaluation shows that CHC can support ~10Gbps per-NF throughput and <0.6mus increase in median per-NF packet processing latency, and chain-wide correctness at little additional cost.
Motivation & Objective
- To address the lack of correctness and performance in existing NFV frameworks when managing stateful, dynamically scaled, or failed NF instances.
- To ensure chain-wide correctness (COE) under dynamic traffic reallocation, failures, and shared state updates.
- To minimize performance overhead from state management in NF chains, especially during failover and load balancing.
- To enable efficient, low-latency recovery from NF, root, and datastore failures while maintaining state consistency.
- To suppress spurious duplicate state updates caused by straggler or failed upstream NFs.
Proposed method
- CHC externalizes NF state to an in-memory, persistent external datastore, ensuring state availability after failures.
- It introduces a logical clock at the chain entry to track packet order and enable relative ordering across distributed NF instances.
- Metadata logs are maintained at the datastore and NFs to track in-flight packets and update operations, enabling duplicate suppression and correct recovery.
- CHC uses scope-aware traffic partitioning and state access pattern awareness to minimize cross-instance shared state coordination.
- It offloads shared state update operations to the datastore, which serializes them for consistency, reducing coordination overhead at NFs.
- Failure recovery protocols leverage logical clocks and operation logs to reconstruct state identically to a failure-free execution, ensuring COE.
Experimental results
Research questions
- RQ1Can a stateful NF chain maintain correctness (COE) under dynamic scaling, failover, and traffic reallocation, even with shared and per-flow state?
- RQ2How can state management be optimized to achieve near-zero performance overhead in high-throughput NF chains?
- RQ3Can logical clocks and metadata logs suppress duplicate state updates caused by network delays or straggler NFs?
- RQ4What is the performance overhead of recovering from NF, root, or datastore failures while preserving correctness?
- RQ5How does CHC compare to existing frameworks in terms of latency, throughput, and consistency guarantees under failure and load conditions?
Key findings
- CHC achieves a per-NF throughput of 9.42Gbps, matching the maximum throughput of standalone NFs, demonstrating minimal performance degradation.
- The median per-NF packet processing latency increase due to state management is less than 0.6μs, with a range of 0.02–0.54μs across workloads.
- CHC reduces per-packet latency by 6× compared to [28] during failover, and is 99% faster than [16] in updating strongly consistent shared state.
- CHC suppresses duplicate packets and state updates effectively, reducing duplicate updates from 545 to 0 under 50% load, eliminating false positives/negatives.
- Failure recovery is efficient: root recovery takes <41.2μs, and datastore recovery takes ≤388.2ms even with 10 NAT instances, with 150ms checkpoint intervals.
- CHC successfully detects all 11 Trojan signatures in the off-path detector scenario, while OpenNF misses up to 11 signatures due to lack of chain-wide ordering guarantees.
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.