AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

i365Finds Editorial is the independent research and editorial organization behind 365 Wiki. We follow changes in tools, products, services, entertainment, and digital life around the world, turning scattered and fast-moving information into clearly sourced, well-structured public content that is easier to understand and compare.
Indexed 91,206 Wiki articles

CPU Architecture and Hardware Crypto Acceleration: Sizing Open-Source Routers for Maximum VPN Throughput

Lars-Marten Prell · 365Finds Editorial

A multi-gigabit Ethernet port on a router specification sheet means nothing when every packet must be encrypted in real time. At 365Finds, we regularly see home lab builders and network administrators fall into the same trap: they install OpenWrt or pfSense on a cheap multi-port appliance or an aging dual-core box, plug in a gigabit fiber link, turn on an encrypted tunnel, and watch their connection throttle down to 45 Mbps while CPU core usage hits 100%.

The bottleneck is almost never the network interface. It is the collision between your cryptographic cipher, your CPU instruction set, and the operating system's packet handling path. Choosing the right hardware is not about throwing brute-force gigahertz at the problem; it is about matching processor architecture and hardware crypto extensions to your chosen VPN protocol.

The Core Bottleneck: Instruction Extensions vs. Clock Cycles

Symmetric encryption is mathematically brutal on standard general-purpose CPU registers. Every block of payload data must undergo iterative rounds of substitution, bitwise permutation, and finite-field multiplication.

When a processor lacks dedicated hardware cryptographic instructions, every single cryptographic round must be executed through generic arithmetic logic unit (ALU) instructions. A 1 GHz CPU attempting to compute AES-256 in pure software will burn roughly 20 to 30 clock cycles per byte. That math caps your maximum theoretical VPN throughput well below 100 Mbps, regardless of how much idle bandwidth your ISP provides.

Hardware acceleration fundamentally alters this equation by introducing silicon-level execution pipelines tailored to specific math operations:

A common misconception 365Finds encounters in network forums is the belief that enabling AES-NI magically accelerates all VPN tunnels. It does not. The cryptographic cipher mandated by your VPN protocol determines strictly which hardware engine can help you.

Architecture Breakdown: x86_64, ARMv8, and Legacy MIPS

The open-source router ecosystem spans three distinct hardware tiers. Understanding their architectural boundaries prevents costly hardware mispurchases.

1. Modern x86_64 (Intel Jasper Lake, Alder Lake-N, AMD Ryzen Embedded)

For pfSense, OPNsense, and heavy OpenWrt x86 deployments, modern x86_64 appliances (such as those powered by the Intel Celeron N5105 or Intel Processor N100) are the gold standard for high-bandwidth routing.

2. ARMv8 64-Bit (Cortex-A53, Cortex-A72, Cortex-A73)

The modern OpenWrt ecosystem is dominated by ARMv8 SoCs (such as MediaTek Filogic 820/830/880 series, Rockchip RK3568/RK3588, and Broadcom BCM2711/BCM2712).

3. Legacy MIPS and 32-Bit ARM (MediaTek MT7621, Older Broadcom SoCs)

Budget OpenWrt devices like the ubiquitously deployed MediaTek MT7621A (found in thousands of budget consumer routers and the Ubiquiti EdgeRouter X) represent the legacy tier.

Protocol and Cipher Pairing: Matching Software to Silicon

Hardware acceleration is useless if your VPN protocol cannot feed data through the acceleration pipeline.

+----------------------------------------------------------------------------------+
|                           VPN Protocol & Cipher Engine                           |
+----------------------------------------------------------------------------------+
                                        |
                   +--------------------+--------------------+
                   |                                         |
         WireGuard (Kernel)                        OpenVPN (DCO Enabled)
         ChaCha20-Poly1305                         AES-128-GCM / AES-256-GCM
                   |                                         |
                   v                                         v
         SIMD Vector Engines                       Hardware AES Pipelines
         ARM NEON / x86 AVX2                       x86 AES-NI / ARMv8 Crypto
                   |                                         |
                   v                                         v
     High Per-Core Clock & IPC                  Dedicated Crypto Offload Units
       (800 Mbps - 2.5 Gbps)                        (500 Mbps - 1.5 Gbps)

WireGuard: Tailored for SIMD, Indifferent to AES-NI

WireGuard deliberately eschews cryptographic agility. It uses a single cryptographic suite: ChaCha20 for symmetric encryption and Poly1305 for message authentication.

Because ChaCha20 is an ARX cipher (Add-Rotate-Xor) rather than a substitution-permutation network like AES, it does not use AES-NI. You can run WireGuard on an enterprise server with high-end AES-NI instructions, and WireGuard will completely ignore them. Instead, WireGuard relies on:

  1. SIMD Vector Instructions: ARM NEON on ARMv8 or AVX2/AVX-512 on x86 accelerate the ARX operations across 128-bit or 256-bit vectors simultaneously.
  2. Single-Core IPC and Frequency: While the Linux kernel WireGuard implementation distributes parallel packet queues across multiple CPU cores, any single high-bandwidth stream is fundamentally governed by the clock speed and Instructions Per Cycle (IPC) of an individual core.

OpenVPN: The Context-Switching Tax and DCO Revolution

Historically, OpenVPN was infamous for poor throughput on home routers. It ran as a user-space daemon (tun/tap), requiring two memory copies and two operating system context switches for every single network packet: kernel space to user space for decryption, and user space back to kernel space for routing.

On embedded routers with weak single-core performance, this context switching choked throughput long before the cipher computation itself became the bottleneck.

Two major developments have modernized OpenVPN:

  1. AES-GCM + AES-NI / ARMv8 CE: Using Galois/Counter Mode combines encryption and authentication into a single accelerated pass, cutting CPU overhead by over 50% compared to legacy AES-CBC with HMAC-SHA256.
  2. OpenVPN Data Channel Offload (ovpn-dco): Both pfSense (via if_ovpn) and modern OpenWrt builds now support DCO. DCO moves the entire cryptographic data channel directly into kernel space, eliminating context-switching penalties. With DCO and AES-NI enabled on an x86 appliance, OpenVPN throughput jumps from 150 Mbps to well over 700 Mbps.

Dedicated Co-processors vs. Instruction Sets: The Latency Trap

Many network administrators assume that a dedicated hardware crypto co-processor—such as Marvell CESA, Inside Secure SafeXcel (found in the Netgate 1100 and 2100), or Intel QAT—is inherently superior to on-CPU instructions like AES-NI or NEON.

365Finds has tested and analyzed these architectures in production environments, and the reality is counterintuitive.

Dedicated co-processors operate over internal DMA and memory busses:

  1. The kernel receives a network packet in RAM.
  2. The packet descriptor is queued to the crypto co-processor.
  3. The DMA engine copies data to the accelerator engine.
  4. The accelerator encrypts or decrypts the block.
  5. An interrupt triggers, signalling the CPU that data is ready.
  6. The CPU retrieves the packet and routes it.

For massive 16 KB data buffers or tens of thousands of concurrent IPsec connections, dedicated accelerators shine. But for consumer and home-lab routing—where standard internet traffic consists of varied packet sizes between 64 bytes and 1420 bytes—the latency and DMA overhead of an asynchronous co-processor can actually result in lower throughput than synchronous CPU instructions like AES-NI or ARM NEON.

On-core CPU instructions execute immediately in the pipeline without bus arbitration or interrupt overhead. For home routers pushing under 2.5 Gbps, modern CPU instruction extensions consistently beat asynchronous hardware crypto cards.

Hardware and Protocol Pairing Matrix

To guide hardware procurement for open-source firewalls, 365Finds summarizes typical throughput limits under real-world conditions:

Hardware ArchitectureKey Acceleration FeatureOpenWrt / pfSense CompatibilityExpected WireGuard MaxExpected OpenVPN (DCO + AES-GCM)Best Protocol & Configuration
x86_64 Modern (e.g., Intel N100, AMD Ryzen Embedded)AES-NI, AVX2, high single-core IPCSupported on both pfSense and OpenWrt1.2 Gbps – 2.5 Gbps700 Mbps – 1.2 GbpsEither protocol; enable DCO for OpenVPN; choose WireGuard for lower latency.
x86_64 Budget/Older (e.g., Intel Celeron J1900, Core 2 Duo)Lacks AES-NI (or early SSE only)Supported on both180 Mbps – 320 Mbps60 Mbps – 110 MbpsWireGuard exclusively; OpenVPN will saturate CPU immediately.
ARMv8 Modern Networking (e.g., MediaTek MT7986 Filogic 830)ARM NEON + ARMv8 Crypto ExtensionsExcellent OpenWrt support; limited pfSense800 Mbps – 1.0 Gbps350 Mbps – 500 MbpsWireGuard for line-rate routing; OpenVPN requires AES-128-GCM with DCO.
ARMv8 General Purpose (e.g., Broadcom BCM2711 / RPi 4)ARM NEON; lacks ARMv8 Crypto ExtensionsOpenWrt supported500 Mbps – 700 Mbps100 Mbps – 160 MbpsWireGuard; avoid AES-based ciphers due to lack of dedicated AES instructions.
MIPS / 32-Bit ARM (e.g., MediaTek MT7621A, BCM4709)None (Pure integer ALU software math)Legacy OpenWrt devices100 Mbps – 180 Mbps25 Mbps – 40 MbpsWireGuard only for low-speed connections; unsuitable for modern gigabit WANs.

How to Verify Hardware Acceleration on Your Router

Before assuming your configuration is optimized, verify that the operating system has detected and loaded the necessary cryptographic modules.

On OpenWrt (Linux-Based)

Log in via SSH and inspect CPU capabilities:

# Check CPU architecture flags
cat /proc/cpuinfo | grep -E "(Features|flags)"

# Look for 'aes' or 'asimd'/'neon' in the output.
# On x86: flags should list 'aes' and 'avx2'
# On ARM: Features should list 'neon' or 'asimd' and 'aes'

Next, test whether OpenSSL can leverage your acceleration engine using the built-in benchmark tool:

# Benchmark AES-128-GCM with hardware acceleration
openssl speed -evp aes-128-gcm

# Benchmark ChaCha20-Poly1305
openssl speed -evp chacha20-poly1305

If the throughput in speed -evp jumps by a factor of 4x to 10x compared to running standard non-EVP speed tests, your hardware pipeline is operating correctly.

On pfSense / OPNsense (FreeBSD-Based)

  1. Open the web interface and navigate to System > Advanced > Miscellaneous.
  2. Locate the Cryptographic & Thermal Hardware section.
  3. In the Cryptographic Hardware dropdown:
    • For Intel and AMD CPUs: verify that AES-NI CPU-based acceleration is selected.
    • For pfSense Plus systems with Intel hardware: evaluate Intel IPsec Multi-Buffer (IPsec-MB), which accelerates ChaCha20-Poly1305 and AES via SIMD instructions.
  4. Verify detection via the command line:
dmesg | grep -i aes

The system log should confirm: AES-NI instructions: YES.

References