A generational divide in encryption kernels: the design logic behind three protocols
IPSec dates back to the 1990s, designed to establish trusted tunnels over the public internet. It uses the IKEv1/IKEv2 handshake together with ESP (Encapsulating Security Payload), and the suite is mature enough that virtually every router, firewall, and switch supports it natively. This “textbook” security architecture gives auditors genuine peace of mind — you can see the details of every phase of key negotiation in the logs. The other side of the coin: the negotiation process is elaborate, and mobile clients, especially iOS and Android devices traversing symmetric NAT, often need extra NAT-T encapsulation. During peak meeting hours, several hundred devices reconnecting at once can fill the session table on a headquarters egress firewall. OpenVPN takes a software-defined route, built on the SSL/TLS stack, and its port can be bound to 443. That means in tightly controlled networks such as hotels and airports, OpenVPN traffic looks much the same as HTTPS, giving it the strongest traversal of the three. At a logistics company in Shunyi, I saw them connect six branch data centers with OpenVPN; the IT lead said, “The whole point is that the network admin can’t tell this is a VPN.” The cost is that OpenVPN runs in user space, so CPU overhead is considerably higher than kernel-level options, and at 200 concurrent users the strain on the server is obvious. WireGuard is the newcomer, arriving in the Linux kernel in 2020. It uses Curve25519 for key exchange, ChaCha20-Poly1305 for data encryption, and Poly1305 for message authentication — cryptographic choices modern to the point of being “aggressive.” Its codebase is a fraction of IPSec’s: 40,000 lines against 600,000, which means lower audit cost and a smaller attack surface. At a manufacturing company in Changping I ran a live test: WireGuard’s tunnel setup time dropped from IPSec’s 3–5 seconds to under 1 second. The problem is that it lacks many features above the IP layer, has no built-in AAA, and enterprise-grade access control depends on fwmark or a third-party controller.When it comes to selection, I usually ask clients three questions: what share of your staff needs to dial in from behind a strict firewall? How much CPU overhead can your servers tolerate? And are you willing to give up some performance for easier management? Different answers lead to completely different solutions.
Traversal and latency: the real numbers I measured on customer sites
Test environment: 50 Mbps home broadband plus a 4G mobile network, connecting to a VPN gateway in a Yizhuang data center, using iperf3 and ping. IPSec performed most consistently on mobile networks: over 4G, average latency stayed under 38 ms and packet loss within 0.3%. On fixed broadband in office buildings, though, NAT traversal occasionally fails and NAT-T has to be enabled manually — a step that has tripped up plenty of operations staff without a technical background. OpenVPN showed slightly higher latency under the same conditions, 45–52 ms, but its success rate for connections leaving through port 443 was close to 99%, so it rarely hits a wall at universities and hospitals where network policies are strict. WireGuard is constrained by UDP, and some corporate firewalls block non-standard UDP ports by default. Its latency was the lowest, 28–35 ms, but only if the firewall has 51820/UDP open or you are willing to map it to 53/UDP. The throughput test was more interesting. When iperf3 pushed traffic in both directions to saturate the link, IPSec — with everything encrypted under AES-256-GCM — was the first to spike CPU usage to 85%. OpenVPN’s user-space overhead capped its maximum throughput at roughly 60% of IPSec’s. WireGuard, thanks to modern ciphers and kernel bypass, held CPU usage around 25% while reaching 94% of the physical bandwidth. That number surprised even me.From 30 to 300 people: real deployment paths at three scales
A precision-instrument technology company in Yizhuang has 32 people across R&D and sales, all working on site with no need for remote work. With a limited IT budget, the boss said, “Annual IT spending cannot exceed RMB 50,000.” They had been using a domestic IPSec VPN appliance that often needed a reboot before new hires could connect. My proposal was to deploy WireGuard on a low-spec cloud host, with wg-easy as the management interface. Deployment took three hours, and day-to-day operations now come down to a single command. The cost: RMB 2,400 a year for the cloud host, with essentially zero management overhead. A food-processing company in Tongzhou, with 150 people, runs a factory and a downtown office, with finance and warehouse systems on the internal network. The production side uses industrial PLCs with unusual IP ranges, and the client requires that all ERP access go through VPN auditing. This is where OpenVPN’s strengths show: it can precisely control which user reaches which subnet, the subnet routing rules sit in the config file in plain view, and logs export directly for audits. The downside is a more complex server setup, so I wrote them a set of Ansible playbooks that bring a new server through initialization in ten minutes. The setup has been running for a year and a half, with daily concurrency of 40–60, and the server has never had a problem. An advertising and media company in Chaoyang, with 280 people, has high staff turnover: project teams bring in new people at any time, and clients often shoot out of town and need remote access to the asset library. They had been on IPSec, and the mobile experience was poor, with complaints centered on “can’t connect” and “it connects, but file transfers are slow.” The final design was a hybrid architecture: IPSec at the headquarters egress for site-to-site links to ensure stability, WireGuard for the project teams’ remote access, and Tailscale on the clients for mesh networking. The benefit is that core business traffic rides a mature solution with no risk, while flexible workloads use a modern protocol without being constrained. The downside is maintaining two sets of credentials across two networks — later I unified them with Keycloak SSO, so engineers scan a code and they are in the tunnel.- 30–50 people, budget-sensitive, little mobile work → WireGuard + wg-easy / self-hosted, under RMB 3,000 a year
- 50–150 people, multi-site connectivity, strong audit requirements → OpenVPN + Ansible automation, balancing traversal and compliance
- 150–300 people, hybrid work, high concurrency → IPSec for the site backbone + WireGuard for remote endpoints, or consider a zero trust solution outright
One counterintuitive pattern: many companies spend heavily on VPN appliances, only to find that 80% of their traffic is actually SaaS application access. In such cases, rather than optimizing the VPN itself, it makes more sense to put core applications through a zero trust retrofit and leave the VPN for genuine internal resource access. At an internet company in Wangjing I saw them route DingTalk, Feishu, and WeCom all through an internal proxy, and VPN load dropped by 60%.
The selection checklist: what decides is often not the technology itself
Set the technical comparison aside: what actually shapes the decision is often people and process. I worked with a state-owned enterprise in Shijingshan where the client stated plainly, “VPN logs must be retained for three years for audit purposes.” That is no longer a question of OpenVPN versus WireGuard, but of whose log format better meets MLPS (China’s Multi-Level Protection Scheme) requirements and who supports syslog forwarding. They ultimately chose Sangfor VPN hardware — not because it performed best, but because they had an off-the-shelf MLPS 2.0 (China’s Multi-Level Protection Scheme) compliance package. Another frequent obstacle is path dependency inside the organization. Some companies’ ERP systems were designed around IPSec fifteen years ago, and changing protocols means reworking business systems — a cost that technology selection alone cannot cover. I usually ask clients: how much re-engineering cost are you willing to absorb for this decision? If the answer is zero, optimize within the existing architecture rather than digging yourself a hole chasing new technology. One last industry trend: WireGuard is becoming enterprise-ready fast. Commercial distributions such as Tailscale, Netmaker, and WireGuard Operating System close the AAA and centralized management gaps that the native version lacks. If you are doing a selection now, I would suggest putting WireGuard-based commercial options and traditional IPSec/OpenVPN into the same evaluation matrix — in three years this market will look different.Is your Beijing enterprise IT hitting a bottleneck? Siwenlide has served 1000+ clients over 14 years — let us put together a complete solution for you.
☎ 400-686-2011 · 📍 Room 3-1002, 9F, Building 3, No. 1 Huihai South Road, Beijing Airport Economic Core Area · Contact Us
※ A business broadband or private line connection is included free during the contract term, keeping your business connectivity more stable.








