Community discussions

MikroTik App
 
jormerod
just joined
Topic Author
Posts: 20
Joined: Mon Oct 14, 2013 8:45 pm

CCR1009 High CPU Load

Thu Apr 23, 2020 7:58 pm

Hi,

We have a CCR1009 which has 192 VLANS (one for each apartment) with packet marking & queues to speed limit each VLAN/apartment to their particular subscribed tariff. Throughput is less than 200Mbps.

This has been running fine for over a year but as the building is reaching 70%+ occupancy, we're starting to see high CPU loads reach towards 100% (screenshot attached).

The obvious next step is to upgrade to a 1016 or 1032 but im wondering what headroom that will give me.

Perhaps it may be better to look for a different (less CPU intensive) method of limiting the VLANS?
You do not have the required permissions to view the files attached to this post.
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: CCR1009 High CPU Load

Thu Apr 23, 2020 8:11 pm

Are those VLANs handled 100% by the CCR ?
Bridge VLAN Filtering enabled etc ?

If yes, well there is no Switch Chip on the CCR, everything is handled by the CPU at 100%...
So it is expected to have a high CPU load...
 
User avatar
jspool
Member
Member
Posts: 469
Joined: Sun Oct 04, 2009 4:06 am
Location: Oregon

Re: CCR1009 High CPU Load

Fri Apr 24, 2020 1:26 am

When back in stock you might consider: https://www.balticnetworks.com/maxxwave ... ore-router
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1071
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: CCR1009 High CPU Load

Fri Apr 24, 2020 9:18 am

I think a CCR1009 should be capable of doing this... Are you really using packet marking? Why not mark connection?

Have a look a profiling to see what process uses the cpu most:
/tool profile
 
jormerod
just joined
Topic Author
Posts: 20
Joined: Mon Oct 14, 2013 8:45 pm

Re: CCR1009 High CPU Load

Tue Apr 28, 2020 12:15 am

It appears to be the firewall which is consuming the CPU. I suspect the mark connection is increasing the load?
Last edited by jormerod on Tue Apr 28, 2020 12:16 am, edited 1 time in total.
 
jormerod
just joined
Topic Author
Posts: 20
Joined: Mon Oct 14, 2013 8:45 pm

Re: CCR1009 High CPU Load

Tue Apr 28, 2020 12:16 am

I think a CCR1009 should be capable of doing this... Are you really using packet marking? Why not mark connection?

Have a look a profiling to see what process uses the cpu most:
/tool profile
Sorry yes, mark connection :)
 
jormerod
just joined
Topic Author
Posts: 20
Joined: Mon Oct 14, 2013 8:45 pm

Re: CCR1009 High CPU Load

Tue Apr 28, 2020 12:19 am

Are those VLANs handled 100% by the CCR ?
Bridge VLAN Filtering enabled etc ?

If yes, well there is no Switch Chip on the CCR, everything is handled by the CPU at 100%...
So it is expected to have a high CPU load...
Yes all the VLANS handled by the CCR. I was expecting a higher load but didn't expect it so quick.

My options are split the VLANS over two routers or upgrade the CCR1009 to a 1016 or 1032.
 
acidsas
newbie
Posts: 40
Joined: Tue May 21, 2013 1:48 pm

Re: CCR1009 High CPU Load

Tue Apr 28, 2020 4:17 am

There is something wrong with your config.
First of all use simple queues to limit customers. Simple queues are faster than queue tree when run on multicore cpus. And you don't need any packet marking.
Let's start with a screen shot of /tool profile. Run it during rush hour.

I have few CCR1016 with ~380 VLANs, Hotspot, ~1500 customers, simple queues, nat, extensive firewall and ~3000Mbit/s (3Gbps) going thru router. Load never goes above 75%.
 
User avatar
mutluit
Forum Veteran
Forum Veteran
Posts: 821
Joined: Wed Mar 25, 2020 4:04 am

Re: CCR1009 High CPU Load

Tue Apr 28, 2020 6:20 am

I'm not a Telco guy, but I wonder how your HW setup looks like. The CCR1009 models are just 8 port Gigabit routers. I assume you have some cheap unmanged(dumb) Gigabit switches attached to each router port, and from the switches then going to each customer, right? If yes, then IMHO you don't need any VLAN stuff. I would do it this way. But as said, I'm not a telco guy :-)
 
jormerod
just joined
Topic Author
Posts: 20
Joined: Mon Oct 14, 2013 8:45 pm

Re: CCR1009 High CPU Load

Tue May 12, 2020 7:06 pm

Turns out we were marking every packet and not just new packets. This caused the high cpu load. Now the cpu is sat nicely at 15% :)
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: CCR1009 High CPU Load

Tue May 12, 2020 7:39 pm

Wait... were you connection-marking or packet-marking every packet? The queues in /queue tree match on packet-mark so each packet must have one to get handled by its respective queue, i.e. assigning the packet-mark only to first packet of a connection makes the other packets of that connection bypass the queues (or fall into the default one); the queues in queue simple match on IP range or interface name as target so they don't require any marking at all.

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot] and 153 guests