I’ve recently bought an RB2011 and so far I’m pretty happy with it. Considering the flexibility of RouterOS, I’m wondering if I configured my router correctly: I only get ~800MBit switch performance with CPU loaded to 80%. I have the idea that the CPU is doing more than it should, how can I diagnose and solve this? I’m using VLANs and understand some VLAN configurations are hardware accelerated while others are not (http://forum.mikrotik.com/t/vlan-bridge-new-way-hw-offload-and-performance/132317/23), however I’m not sure how to check or fix this. Does anyone have an idea?
RB2011 CPU usage during transfer:
[admin@rb2011] > /tool profile
NAME CPU USAGE
ethernet 26.5%
console 0%
flash 0%
ssh 0.5%
dns 0%
firewall 0%
networking 32.5%
logging 0.5%
management 1.5%
profiling 3.5%
queuing 0%
bridging 11.5%
unclassified 7%
total 83.5%
I’ve read up on different VLAN methods and I think I understand I’ve been using CPU VLAN-filtering in a bridge, instead of using switch VLAN-filtering in the ethernet interfaces, but to be honest I’m quite confused about it.
How can I use hardware-accelerated VLAN switching on my RB2011 using two switches? I’m somewhat confused by the documentation and changes since 6.41 that are not listed everywhere. Hope somebody can help
Thanks for your reply tdw . Is there no way that I can get hardware performance on traffic within one switch, and only use the bridge for inter-switch traffic? That would already be a great solution. More specifically, what goes wrong in the example on https://wiki.mikrotik.com/wiki/Manual:Layer2_misconfiguration#Configuration_10? Of the issues listed (Packets being dropped, Low throughput), I already have low throughput (because ALL traffic goes over CPU), and why are packets be dropped? Hope somebody can help!
It would be, but I suspect the issue is due to the underlying mechanisms copying the switch hardware FDB tables to the bridge FDB which, given that Mikrotik suggest the external hardware connection, is unlikely to be fixed.
It depends on your use case - if the devices connected to the switch ports are communicating with devices on other switch ports, or the internet, then the traffic is being routed by the CPU anyway so using a software VLAN-aware bridge has little additional effect on throughput. If you have some devices on the same VLAN which you wish to have wire-speed traffic between then either the solution Mikrotik suggest in the Wiki, or an additional switch.
If you are using different VLANs on ports1-5 than on ports6-10 (e.g. VLANs 10,11,12 on ports1-5 and VLANs 20,21 on ports6-10, for example) you may be able to use two non-VLAN-aware bridges and switch chip setup as the FDB tables are completely unrelated, but I’ve not tested this.