Community discussions

MikroTik App
 
AlohaSpark
newbie
Topic Author
Posts: 45
Joined: Wed Jun 16, 2021 10:39 pm

How do I reduce PPPoE client CPU usage?

Tue Jan 02, 2024 1:45 pm

I'm using RouterOS 7.13. My WAN connections are four 1Gbit PPPoE connections as well as two lightly-used BGP full-table upstreams.

The issue I'm facing is that whenever the PPPoE connections are loaded to around 2Gbps total, one of the CPU cores is heavily loaded
  • around 70% on one core while the average is 30% for CHR running on 2x E5-2697V4
  • 90% to 100% on one core while the rest is 30% on CCR2116


I have isolated this to the PPPoE connections. If I change my network and connect to my modem via DHCP rather than bridging the modem and configuring the PPPoE clients on the MikroTik, the issue disappears and all cores are used fairly at around 30% average. The issue with this is double-NAT which affects some of my clients.

I have tried multiple things with the PPP profiles. Disabled everything under "Protocols" (no compression, encryption), adjusted MTU/MRU (it's now 1500 bytes) then disabled changing MSS, etc.

How do I try to resolve this? It seems to be caused purely by the PPPoE clients, maybe running single core (??)

My current topology is
WAN -> CCR2116 (PPPoE clients for WAN and NAT) -> CHR (for client shaping/queueing)
======================================================================================================
This is the CPU usage and traffic on my CCR2116 right now
Screenshot 2024-01-02 194729.png
======================================================================================================
This is the CHR instance now, after I moved the PPPoE WAN connections to the CCR2116 and used the CCR as this CHR's WAN
Screenshot 2024-01-02 194827.png
======================================================================================================
And this is on the CHR a few months ago, before I got the CCR. PPPoE WANs are running on it.
Screenshot 2024-01-02 195025.png
You do not have the required permissions to view the files attached to this post.
 
LdB
Member Candidate
Member Candidate
Posts: 145
Joined: Thu May 20, 2021 4:23 pm

Re: How do I reduce PPPoE client CPU usage?

Tue Jan 02, 2024 2:45 pm

Just use a static private IP transit between the modem and the router

So lets say on the LAN of the modem you have 192.168.20.1/24
On the CCR you use a suitable static 192.168.20.2/24 to form a transit network

Then you just IP route thru it WITHOUT NAT
/ip route
add distance=1 dst-address=0.0.0.0/0 gateway=192.168.20.1
It's not a problem to route public or private IPs thru private transit IPs and involves no double NAT
On the modem just place a static route of the networks on the CCR back
So if the CCR has 10.0.0.0/16 for example on the modem you route that to 192.168.20.2 on the modem static routes.

The only NAT that occurs in that route is out on the MODEM so double NAT gone and you should have your 30% CPU loads
 
AlohaSpark
newbie
Topic Author
Posts: 45
Joined: Wed Jun 16, 2021 10:39 pm

Re: How do I reduce PPPoE client CPU usage?

Tue Jan 02, 2024 5:07 pm

For reference, I am having this exact same issue: viewtopic.php?t=200771#p1031293
 
LdB
Member Candidate
Member Candidate
Posts: 145
Joined: Thu May 20, 2021 4:23 pm

Re: How do I reduce PPPoE client CPU usage?

Wed Jan 03, 2024 2:49 am

We get the problem so go around the issue.

At these speeds you are not a domestic customer anymore and you don't want a PPPOE connection because you know there is going to be overheads and MTU clamps. You want a transit link from your upstream provider like any normal ISP would take and in this case just engineer that and profit.

As an aside you might want to look at PPPOE limits on cisco models and why. There is a reason most ISP won't give you 2GB on a PPPOE unless they have router processing to burn.
 
AlohaSpark
newbie
Topic Author
Posts: 45
Joined: Wed Jun 16, 2021 10:39 pm

Re: How do I reduce PPPoE client CPU usage?  [SOLVED]

Wed Jan 03, 2024 10:10 am

We get the problem so go around the issue.

At these speeds you are not a domestic customer anymore and you don't want a PPPOE connection because you know there is going to be overheads and MTU clamps. You want a transit link from your upstream provider like any normal ISP would take and in this case just engineer that and profit.

As an aside you might want to look at PPPOE limits on cisco models and why. There is a reason most ISP won't give you 2GB on a PPPOE unless they have router processing to burn.
I'll talk about this with my provider. In the meantime, I have worked around the issue by spinning up one CHR instance per PPPoE WAN connection then doing the proper routing config.
 
User avatar
amb3r
just joined
Posts: 16
Joined: Fri Oct 31, 2014 8:35 am

Re: How do I reduce PPPoE client CPU usage?

Mon Feb 05, 2024 11:09 am

any update or workaround with having pppoe-client as WAN source receiving 1gb+ bandwidth?
 
ivicask
Member
Member
Posts: 425
Joined: Tue Jul 07, 2015 2:40 pm
Location: Croatia, Zagreb

Re: How do I reduce PPPoE client CPU usage?

Mon Apr 01, 2024 10:03 am

any update or workaround with having pppoe-client as WAN source receiving 1gb+ bandwidth?
I would like to know the same, CCR2004 can't push more then 1gb without fastrack with pppoe client.

Who is online

Users browsing this forum: akakua, alibloke, eminem9207, Google [Bot], mstanciu, pe1chl and 28 guests