# Ipq4018 openvpn client performance query

**URL:** <https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990>\
**Category:** Installing and Using OpenWrt\
**Created:** [July 3, 2019, 12:16am UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990 "2019-07-03T00:16:32Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![bill888](https://forum.openwrt.org/letter_avatar/bill888/32/6_449c533f586939b6e5f246632a46421f.png) [@bill888](https://forum.openwrt.org/u/bill888)\
**Post date:** [July 3, 2019, 12:16am UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/1 "2019-07-03T00:16:32Z")

</div>

hi, does anyone have any experience of what speeds are possible with openvpn client on a ipq4018 based router?

I found this old thread suggests 60 mbps which seems awfully optimistic compared to 30 mbps with MT7621 which has a higher clock speed.

[https://forum.openwrt.org/t/which-hardware-for-x-mbit-openvpn/19410/24](https://forum.openwrt.org/t/which-hardware-for-x-mbit-openvpn/19410/24)

---

<div class="post-metadata">

**Author:** ![jeff](https://forum.openwrt.org/letter_avatar/jeff/32/6_449c533f586939b6e5f246632a46421f.png) [@jeff](https://forum.openwrt.org/u/jeff)\
**Post date:** [July 3, 2019, 12:22am UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/2 "2019-07-03T00:22:36Z")

</div>

Very different processor cores, so much more than clock speed is involved

- IPQ401x -- ARM Cortex A7
- MT7261 -- MIPS 1004Kc

_Edit: That graph is, I think, "artist's conception" rather than hard data._

From the same vendor, who actually tests them and whose numbers seem to be reasonable (and would be self-consistent, at the very least):

[MIPS 775 MHz](https://www.gl-inet.com/products/gl-ar750s/)

- WireGuard -- 68 Mbps
- OpenVPN -- 17 Mbps

[ARM 717 MHz](https://www.gl-inet.com/products/gl-s1300/)

- WireGuard -- 192 Mbps
- OpenVPN -- 25 Mbps

---

<div class="post-metadata">

**Author:** ![tmomas](https://forum.openwrt.org/letter_avatar/tmomas/32/6_449c533f586939b6e5f246632a46421f.png) [@tmomas](https://forum.openwrt.org/u/tmomas)\
**Post date:** [July 3, 2019, 5:44am UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/3 "2019-07-03T05:44:23Z")

</div>

> [@jeff](#):
>
> That graph is, I think, "artist's conception" rather than hard data.

That graph is as good as the input that the users provide.

> **[OpenVPN performance](https://openwrt.org/docs/guide-user/services/vpn/openvpn/performance)**
>
> OpenVPN performance See also: \* WireGuard performance \* Table of Hardware: VPN performance Note: The throughput limit for GigE is ~ 940 Mbps

Everybody can help to improve it.

---

<div class="post-metadata">

**Author:** ![diizzy](https://forum.openwrt.org/letter_avatar/diizzy/32/6_449c533f586939b6e5f246632a46421f.png) [@diizzy](https://forum.openwrt.org/u/diizzy)\
**Post date:** [July 3, 2019, 8:02am UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/4 "2019-07-03T08:02:35Z")

</div>

Performance will highly depend on crypto algorithm and optimization.

Setting -O2 instead of default -Os helps quite a bit and that also includes enabling optimization for OpenSSL (-O3) helps quite a bit. You might have better luck using mbed TLS instead on OpenSSL however, at least I found it to be faster than OpenSSL on MIPS.

---

<div class="post-metadata">

**Author:** ![bill888](https://forum.openwrt.org/letter_avatar/bill888/32/6_449c533f586939b6e5f246632a46421f.png) [@bill888](https://forum.openwrt.org/u/bill888)\
**Post date:** [July 30, 2019, 11:40am UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/5 "2019-07-30T11:40:29Z")

</div>

For anyone who is interested, my Linksys EA6350 v3 (IPQ4018) finally arrived from Amazon UK (Still £34 price matching [ebuyer.com](http://ebuyer.com)) after a long 3 week wait.

Installed OpenWrt 19.07 snapshot, and OpenVPN client.

Speedtests report 29-30 Mbps download speed via ethernet LAN port, and about 26-27 Mbps via 5GHz wifi.

Compared to 14 Mbps from an old Western Digital N750 (AR9344), 13 Mbps from TPlink Archer C50v4 (MT7628), and 10 Mbps from HH5a (Lantiq).

---

<div class="post-metadata">

**Author:** ![sammo](https://forum.openwrt.org/letter_avatar/sammo/32/6_449c533f586939b6e5f246632a46421f.png) [@sammo](https://forum.openwrt.org/u/sammo)\
**Post date:** [August 7, 2019, 12:22pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/6 "2019-08-07T12:22:11Z")

</div>

@bill888 how did you managed to achieve such good speed using openvpn?  
I'm testing with linksys ea6350 snapshot with ethernet lan port and the most I can achieve is avg 20Mbit/s  
The end point is local to my region.

Download: 21.54 Mbit/s  
Download: 22.43 Mbit/s  
Download: 17.93 Mbit/s  
Download: 22.66 Mbit/s  
Download: 21.72 Mbit/s  
Download: 18.70 Mbit/s  
Download: 18.96 Mbit/s  
Download: 18.37 Mbit/s

---

<div class="post-metadata">

**Author:** ![bill888](https://forum.openwrt.org/letter_avatar/bill888/32/6_449c533f586939b6e5f246632a46421f.png) [@bill888](https://forum.openwrt.org/u/bill888)\
**Post date:** [August 7, 2019, 1:08pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/7 "2019-08-07T13:08:37Z")

</div>

Here are some results using [speedof.me](http://speedof.me) and [speedtest.net](http://speedtest.net), via ethernet which I just ran. I'm connected to nearest endpoint via my vpn provider.

 ![4openwrt1](https://forum.openwrt.org/uploads/default/original/2X/0/0b290535242e2d42d9ae8b609f8a2fa38df63161.jpeg)

![4openwrt2](https://forum.openwrt.org/uploads/default/original/2X/a/abdef40962d4440c151a4dd670d3f67dca52f51a.jpeg)

The low upload speed is limited by my ISP upstream VDSL connection.

Part of my .ovpn client config file stored on ea6350v3 looks like this:

```
client
dev tun
reneg-sec 0
persist-tun
persist-key
ping 5
ping-exit 30
nobind
comp-lzo no
remote-random
remote-cert-tls server
auth-nocache
route-metric 1
cipher AES-256-CBC
auth SHA512

```

I do admit I was previously using a different out of date .ovpn file when I reported 29-30 Mbps possible. **Update:** I tested both files and can't honestly see much difference in performance.

My ea6350v3 is piggy backed onto my main wifi router. ie. it is Not my primary facing internet router.

Wifi is also disabled on the ea6350v3.

I don't know if it makes any difference, but I use my openvpn client setup guide I wrote for HH5A, to set up using OpenWrt 19.07 snapshot (25 July 2019) to connect to 3rd party VPN provider.

[https://openwrt.ebilan.co.uk/viewtopic.php?f=7&t=279](https://openwrt.ebilan.co.uk/viewtopic.php?f=7&t=279)

---

<div class="post-metadata">

**Author:** ![sammo](https://forum.openwrt.org/letter_avatar/sammo/32/6_449c533f586939b6e5f246632a46421f.png) [@sammo](https://forum.openwrt.org/u/sammo)\
**Post date:** [August 7, 2019, 1:33pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/8 "2019-08-07T13:33:51Z")

</div>

Thanks for sharing. I think you are using a VPS setup. I'm using a VPN provider.

---

<div class="post-metadata">

**Author:** ![bill888](https://forum.openwrt.org/letter_avatar/bill888/32/6_449c533f586939b6e5f246632a46421f.png) [@bill888](https://forum.openwrt.org/u/bill888)\
**Post date:** [August 7, 2019, 1:36pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/9 "2019-08-07T13:36:41Z")

</div>

What is VPS setup?

I'm running openvpn client 2.4.7 in OpenWrt 19.07 snapshot on ea6350v3 connecting to a 3rd party VPN provider.

---

<div class="post-metadata">

**Author:** ![sammo](https://forum.openwrt.org/letter_avatar/sammo/32/6_449c533f586939b6e5f246632a46421f.png) [@sammo](https://forum.openwrt.org/u/sammo)\
**Post date:** [August 7, 2019, 1:48pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/10 "2019-08-07T13:48:52Z")

</div>

[https://www.redstation.com/](https://www.redstation.com/) is your exit point which i thought might be you are renting a Virtual Private Server (VPS). My bad.

---

<div class="post-metadata">

**Author:** ![jeff](https://forum.openwrt.org/letter_avatar/jeff/32/6_449c533f586939b6e5f246632a46421f.png) [@jeff](https://forum.openwrt.org/u/jeff)\
**Post date:** [August 7, 2019, 11:00pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/11 "2019-08-07T23:00:36Z")

</div>

Testing with a very similar IPQ4019-based EA8300 (primary difference in SoC being that it supports PCIe for a third radio), using `iperf3` from the router to a local server I see:

- OpenVPN -- 23-25 Mbps
- WireGuard -- 260-300 Mbps

There is more variation in the WireGuard results that I would like to quote that as a "hard" number (occasional runs under 260 Mbps). I'm checking to see if it is due to `irqbalance` not being installed.

`master` build from last night's source.

_(Using `irqbalance` did not improve the results for WireGuard.)_

---

<div class="post-metadata">

**Author:** ![diizzy](https://forum.openwrt.org/letter_avatar/diizzy/32/6_449c533f586939b6e5f246632a46421f.png) [@diizzy](https://forum.openwrt.org/u/diizzy)\
**Post date:** [August 8, 2019, 10:57pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/12 "2019-08-08T22:57:54Z")

</div>

Is that using `-O2` globally?

---

<div class="post-metadata">

**Author:** ![jeff](https://forum.openwrt.org/letter_avatar/jeff/32/6_449c533f586939b6e5f246632a46421f.png) [@jeff](https://forum.openwrt.org/u/jeff)\
**Post date:** [August 8, 2019, 11:35pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/13 "2019-08-08T23:35:17Z")

</div>

"Stock" `master`, taking defaults for OpenSSL and OpenVPN.

---

<div class="post-metadata">

**Author:** ![sammo](https://forum.openwrt.org/letter_avatar/sammo/32/6_449c533f586939b6e5f246632a46421f.png) [@sammo](https://forum.openwrt.org/u/sammo)\
**Post date:** [August 9, 2019, 4:43pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/14 "2019-08-09T16:43:26Z")

</div>

OK. I probably had a Friday Unit. The wifi was locking up/range was fluctuation. Had an exchange unit from Amazon, now its hitting 25Mbps consistently on VPN and also wifi is stable.

---

<div class="post-metadata">

**Author:** ![jeff](https://forum.openwrt.org/letter_avatar/jeff/32/6_449c533f586939b6e5f246632a46421f.png) [@jeff](https://forum.openwrt.org/u/jeff)\
**Post date:** [August 10, 2019, 2:24pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/15 "2019-08-10T14:24:36Z")

</div>

Recompiled with `-O2` and the OpenWrt performance appears to have improved to ~ 26 Mbps.

```
--- a/dot.config
+++ b/dot.config
@@ -347,9 +347,10 @@ CONFIG_EXTERNAL_KERNEL_TREE=""
 CONFIG_KERNEL_GIT_CLONE_URI=""
 CONFIG_BUILD_LOG=y
 # CONFIG_SRC_TREE_OVERRIDE is not set
-CONFIG_EXTRA_OPTIMIZATION="-fno-caller-saves -fno-plt"
-# CONFIG_TARGET_OPTIONS is not set
-CONFIG_TARGET_OPTIMIZATION="-Os -pipe"
+CONFIG_EXTRA_OPTIMIZATION="-fno-caller-saves -fno-plt -O2"
+CONFIG_TARGET_OPTIONS=y
+CONFIG_TARGET_OPTIMIZATION="-O2 -pipe"
+# CONFIG_SOFT_FLOAT is not set
 # CONFIG_EXTERNAL_TOOLCHAIN is not set
 CONFIG_NEED_TOOLCHAIN=y
 # CONFIG_TOOLCHAINOPTS is not set

```

---

<div class="post-metadata">

**Author:** ![diizzy](https://forum.openwrt.org/letter_avatar/diizzy/32/6_449c533f586939b6e5f246632a46421f.png) [@diizzy](https://forum.openwrt.org/u/diizzy)\
**Post date:** [August 11, 2019, 12:46am UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/16 "2019-08-11T00:46:22Z")

</div>

Is that using mbed TLS or OpenSSL?  
If OpenSSL --\> [https://github.com/openwrt/openwrt/blob/openwrt-18.06/package/libs/openssl/Config.in#L58](https://github.com/openwrt/openwrt/blob/openwrt-18.06/package/libs/openssl/Config.in#L58) 🙂

---

<div class="post-metadata">

**Author:** ![jeff](https://forum.openwrt.org/letter_avatar/jeff/32/6_449c533f586939b6e5f246632a46421f.png) [@jeff](https://forum.openwrt.org/u/jeff)\
**Post date:** [August 11, 2019, 1:13am UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/17 "2019-08-11T01:13:20Z")

</div>

OpenSSL - setting up a test harness to run “stock” builds with both iperf and flent for a variety of boxes. Routing, VPN, and SQM on the list. Not thrilled with the performance of the bridge-integral Intel NICs (i219, e1000 driver) on the mobos. (The on-board, i211, discrete Intel NICs work quite well.) Need to dig up a PCI NIC.

---

<div class="post-metadata">

**Author:** ![diizzy](https://forum.openwrt.org/letter_avatar/diizzy/32/6_449c533f586939b6e5f246632a46421f.png) [@diizzy](https://forum.openwrt.org/u/diizzy)\
**Post date:** [August 11, 2019, 3:00pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/18 "2019-08-11T15:00:19Z")

</div>

Hmm? Pretty much all Intel NICs seems to perform great as far as I can tell at least on FreeBSD.

---

<div class="post-metadata">

**Author:** ![system](https://forum.openwrt.org/uploads/default/original/3X/7/4/740520c71f00039bbf001045c682f0ecb25e905a.png) [@system](https://forum.openwrt.org/u/system)\
**Post date:** [August 21, 2019, 3:00pm UTC](https://forum.openwrt.org/t/ipq4018-openvpn-client-performance-query/39990/19 "2019-08-21T15:00:20Z")

</div>

Closed on August 21, 2019, 3:00pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
