Seeing that the CPU supports AES instructions does not allow immediate inference of VPN throughput. First, verify the encryption algorithm used by the tunnel, then determine whether data processing occurs in user space or kernel space, and finally look for concrete evidence of the actual implementation involved in processing. CPU instructions, dedicated encryption engines, and NAT forwarding acceleration are distinct mechanisms and cannot be collectively concluded under a single "hardware acceleration" status.
This document presents a read-only diagnostic method and has not undergone device performance testing. When there is insufficient path evidence, mark "whether actual usage of acceleration implementation" as unconfirmed, rather than inferring the answer based on the model.
First confirm the protocol; do not infer the result from the AES identifier.
WireGuard uses ChaCha20-Poly1305 to protect data and does not automatically switch to AES, even if the CPU supports AES instructions. Therefore, the AES flag alone cannot explain performance differences in WireGuard; actual implementation, CPU execution efficiency, and traffic path must also be considered. The WireGuard protocol documentation lists the cryptographic primitives used.
For OpenVPN, it is necessary to distinguish between the control channel and the data channel. The suite name in TLS logs is not a general substitute for the business data encryption algorithm; the available algorithm list does not represent the actual algorithm negotiated for the current connection.
Log programs and connections at the VPN endpoint.
The following commands are executed on the OpenWrt router SSH terminal operating as a VPN endpoint; if the router merely forwards VPN connections established by other devices, actual endpoint verification is required. Perform these commands only if OpenVPN is already installed:
ubus call system board
openvpn --version
openvpn --show-ciphers
logread | grep -Ei 'openvpn|Data Channel|cipher|DCO'
Record the OpenVPN version, the cryptographic library used in the build, and the data channel cipher algorithms and DCO (Data Channel Offload) status as seen in the current connection log. --show-ciphers lists only the ciphers available to this program. If the log is missing, has been rotated, or does not specify the current connection, the result should remain blank; do not infer that DCO is disabled or that AES is not in use based on this absence.OpenVPN 2.6 ManualDistinguishes between algorithm negotiation and DCO; other versions should be cross-referenced with the corresponding version documentation.
If the actual connection uses ChaCha20-Poly1305, first suspend the performance analysis along the AES direction. If AES-GCM is used, algorithm recognition has been completed; further investigation into the implementation path is still required.
Distinguish between available implementations and currently used implementations
Only run when OpenSSL command is installed locally:
openssl version -a
Confirm it belongs to OpenSSL 3.x and the local support is available, then read:
openssl list -providers
openssl list -cipher-algorithms
These outputs indicate the providers and algorithms visible in the command environment; the standalone openssl command does not necessarily use the same cryptographic library, build, or configuration as the VPN. Therefore, even if AES-GCM is present, it cannot be stated that "this tunnel has hit the AES instruction."OpenSSL documentation listThese lists are defined with their meanings.
If the connection uses the kernel data path, then check the router's kernel-level encryption implementation:
cat /proc/crypto
Pay attention to name, driver, module, priority, and type. A single algorithm may have multiple implementations; registering a driver does not imply that the tunnel currently uses it, and refcnt is not the hit or throughput count per tunnel. Furthermore, one cannot use this kernel list to prove that user-space OpenSSL employs the same implementation.Linux Crypto API Architecture DocumentExplained the relationship between the algorithm and driver implementation.
Use a record sheet to determine the next step.
| Item record | Can it be confirmed what? | Cannot confirm what yet |
|---|---|---|
| CPU or SoC Official Capability Description | What instructions or engines are equipped? | Firmware is enabled, VPN is invoked |
| Current data channel algorithm | The algorithm for this connection negotiation | Specific hardware implementation and benefits |
| User-space library, DCO, and kernel version | Which handling path should be continued to check? | Which implementation does the current flow actually match? |
| Tracking results applicable to driver count or version | After verification, multicast path determination is supported. | Overall device performance or other protocol conclusions |
No count or tracking evidence is available to justify the version in question; retain "algorithm verified, implementation unverified". Do not directly switch the production tunnel cipher suites or disable DCO to fill in conclusions.
Performance comparison is placed after path confirmation.
If testing is scheduled, the end devices, firmware, algorithms, MTU, direction, packet size, connection count, and data channel mode should be fixed, while CPU utilization, packet loss, temperature, and endpoint bottlenecks should be recorded. User-space micro-benchmarks can help compare different algorithm implementations, but they cannot replace actual tunnel measurements that include routing, encapsulation, and network interface card (NIC) overhead.
During acceptance testing, access the service at the other end of the tunnel from a designated client, verify routing and related counters, and not merely observe handshake completion. The read commands used in this document do not alter existing connections; future A/B changes should be retained within maintenance windows, preserve the original configuration, restore upon failure, and revalidate the original service.
Choosing between x86 and ARM for OpenVPN
Compare the profiles you can actually deploy. On each router, check the OpenVPN version and the negotiated data cipher in the current session log. If one uses AES-GCM and the other ChaCha20-Poly1305, the result describes two complete setups. To isolate the platform, use the same cipher, key length and data path on both. Keep UDP and TCP results separate. A loaded DCO module alone does not establish that the session used it.
From a LAN computer, copy the same file to a server you control and back. Check the route and tunnel counters. Record each direction separately: file bytes × 8 ÷ elapsed seconds ÷ 1,000,000 gives application throughput in Mbit/s. A short transfer confirms connectivity. If the line or remote server limits both setups, compare power and maintenance costs. Consider different hardware if one core repeatedly saturates while the application misses its target. Restore the original profile and check access and DNS.
How to route your home through WireGuard on OpenWrt and verify the egress IP
Reference
- WireGuard Protocol DescriptionAlgorithm selection.
- OpenVPN 2.6 ManualData channel negotiation and DCO.
- OpenSSL versionWithlist: Build and available implementation query.
- Linux Crypto API Architecture: Kernel algorithms and implementation.
Comments