Mikrotik hAP ac3 - Slow fiber PPPoE

Hello,

I recently installed OpenWRT (latest snapshot) on a Mikrotik hAP ac3 (RBD53iG-5HacD2HnD). I have been having problems with poor internet performance since the beginning. I have a fiber symmetrical 1 Gbps connection, and I'm connecting via PPPoE to the terminal.

The average connection speed is ~200 mbps download and ~350 mbps upload - and that's after enabling:

  • Software and Hardware Flow Offloading
  • Packet Steering
  • Irqbalance

After searching the Internet for days, I ran out of options.
Everything was running fine on RouterOS.
The router will be used with other devices, but for the OpenWRT setup, only my PC is connected lan1.
Additionally, iperf3 from router to PC:

root@OpenWrt:~# iperf3 -c 192.168.1.165
Connecting to host 192.168.1.165, port 5201
[  5] local 192.168.1.1 port 44778 connected to 192.168.1.165 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   113 MBytes   944 Mbits/sec    0    224 KBytes
[  5]   1.00-2.00   sec   113 MBytes   941 Mbits/sec    0    224 KBytes
[  5]   2.00-3.01   sec   113 MBytes   939 Mbits/sec    0    224 KBytes
[  5]   3.01-4.00   sec   110 MBytes   935 Mbits/sec    0    224 KBytes
[  5]   4.00-5.00   sec   111 MBytes   932 Mbits/sec    0    224 KBytes
[  5]   5.00-6.00   sec   113 MBytes   947 Mbits/sec    0    224 KBytes
[  5]   6.00-7.00   sec   112 MBytes   936 Mbits/sec    0    224 KBytes
[  5]   7.00-8.00   sec   112 MBytes   947 Mbits/sec    0    224 KBytes
[  5]   8.00-9.01   sec   113 MBytes   941 Mbits/sec    0    224 KBytes
[  5]   9.01-10.00  sec   113 MBytes   953 Mbits/sec    0    224 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.10 GBytes   941 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.10 GBytes   940 Mbits/sec                  receiver

Any suggestions? I really like OpenWRT and wouldn't want to go back to RouterOS.

I doubt the 4 core arm a7 @~700MHz are powerful enough to de/-encapsulate PPPoE at your line rate, I would guess the mikrotik OS off loads PPPoE away from the CPUs.

2 Likes

PPPoE flow offloading is broken in 22.03 and later. Unfortunately, your router is not supported in the 21.02 series, which has a working implementation of flow offloading for PPPoE. Otherwise, I would have recommended a downgrade.

4 Likes

Thank you very much for your reply. I will follow the thread on github and wait for the fix.

1 Like

With your WAN speed - and especially with PPPoE, which is really demanding (and single-threaded), you're firmly beyond the capabilities of ipq40xx.

This is x86_64/ core-i3 territory.

2 Likes

Temporary FIX has been posted on GitHub:

Disable flow offloading in firewall config, save & apply, then do this:

nft flowtable inet fw4 ft { devices = { pppoe-wan, br-lan }\;}
nft insert rule inet fw4 forward meta l4proto { tcp, udp } flow add @ft

And you are free to add lan1, lan2... to the flowtable devices for performance test, just exclude the wan interface should be ok.

And it works for me, speed went up from 200/350mbps to 420/420mbps for bridged lan. Also I have tested this on solo port: 520/520mbps.

@slh So are you saying that this is the max speed I can get on this router with OpenWRT? Is there anything else I can do? If not, I will have to go back to RouterOS to have full speed.

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