Community discussions

MikroTik App
 
User avatar
Techsystem
Member
Member
Topic Author
Posts: 337
Joined: Tue Dec 21, 2021 5:12 am

hardware offload on CRS326

Sat Aug 13, 2022 10:21 am

hello my friends in this forum...!
i built a bridge interface in my CRS326 and add all the 24 ports to it and check the HW for all port. so does that mean that the switch chip in my CRS326 is do it's switching job and no load will be on cpu
or i have to do something else inorder to put this chip into services
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11433
Joined: Thu Mar 03, 2016 10:23 pm

Re: hardware offload on CRS326

Sat Aug 13, 2022 10:23 am

In principle you're all done.
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 2990
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: hardware offload on CRS326

Sat Aug 13, 2022 4:18 pm

Keep in mind even with offload enabled you will see some CPU usage mostly from Management tasks
 
User avatar
Techsystem
Member
Member
Topic Author
Posts: 337
Joined: Tue Dec 21, 2021 5:12 am

Re: hardware offload on CRS326

Mon Aug 15, 2022 6:19 am

but what a bout this switch section..? i mean if i can offload the traffic just by cheching the offload selection in the bridge ports, what is the benefit of the switch in this case..?
i mean the switch section in winbox .
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11433
Joined: Thu Mar 03, 2016 10:23 pm

Re: hardware offload on CRS326

Mon Aug 15, 2022 9:34 am

You can configure some advanced stuff in switch submenu ... one example are ACLs, another example is VLAN tag rewrites ... I'm not sure these two are actually supported by switch chip in CRS326, they are on some of CRS3xx devices. But neither are supported by bridge logic.
 
mfedotov
just joined
Posts: 18
Joined: Mon Oct 25, 2021 3:32 am

Re: hardware offload on CRS326

Tue Aug 16, 2022 4:51 pm

Hi Techsystem

You need to enable l3hw on each port AND the switch itself. In fact disabling l3hw on the switch is the quick way to disable hardware offload in case of any issues (and there were many in the older firmware).
To verify if offload is working I would suggest running '/ip/route/print' and confirm that you have the routes with 'H' flag. You can also do a traffic test between two nodes in different subnets using a tool like iperf3, and monitor the switch CPU utilization ('/system/resource/monitor') at that time.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11433
Joined: Thu Mar 03, 2016 10:23 pm

Re: hardware offload on CRS326

Tue Aug 16, 2022 6:45 pm

You need to enable l3hw on each port AND the switch itself.

l3hw is "routing offload" available on select devices (CRS3xx, CRS5xx, some CCR2xxx and perhaps some more) and is definitely not configurable via switch submenu - the functionality is far too complex to be handled by a few static settings. Indeed to enable l3hw functionality it has to be enabled in a few places, but device has to be configured as router and in certain fashion (not all different routing functions can be l3hw offloaded). But if things line up correctly, then such switch can route at wire speed (according to capacity limits, one such limit can be number of next hop hosts and directly connected LAN hosts usually count individually meaning large LAN can effectively disable l3hw offload).
Mind that l3hw support is depending on particular hardware and e.g. CRS326-24G-2S+ and CRS326-24S+2Q+ are pretty different in this regard.

The hardware offload of bridge functions and things in switch submenu are about "switching" ... so frame switching between ports serving same (V)LAN.
 
dvdhngs
just joined
Posts: 6
Joined: Sun Feb 19, 2023 2:09 pm

Re: hardware offload on CRS326

Tue Feb 28, 2023 2:57 am

You need to enable l3hw on each port AND the switch itself.

l3hw is "routing offload" available on select devices (CRS3xx, CRS5xx, some CCR2xxx and perhaps some more) and is definitely not configurable via switch submenu - the functionality is far too complex to be handled by a few static settings. Indeed to enable l3hw functionality it has to be enabled in a few places, but device has to be configured as router and in certain fashion (not all different routing functions can be l3hw offloaded). But if things line up correctly, then such switch can route at wire speed (according to capacity limits, one such limit can be number of next hop hosts and directly connected LAN hosts usually count individually meaning large LAN can effectively disable l3hw offload).
Mind that l3hw support is depending on particular hardware and e.g. CRS326-24G-2S+ and CRS326-24S+2Q+ are pretty different in this regard.

The hardware offload of bridge functions and things in switch submenu are about "switching" ... so frame switching between ports serving same (V)LAN.
Hello... so I'm thinking about "large LAN can effectively disable l3hw offload"...
There is a value that I can pay attention? actualy on crs326-24g-2s+ have 600 devices at /in/bridge/host print count-only, and my cpu is reaching 100%, so its already "large"?
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11433
Joined: Thu Mar 03, 2016 10:23 pm

Re: hardware offload on CRS326

Tue Feb 28, 2023 8:53 am

There is a value that I can pay attention? actualy on crs326-24g-2s+ have 600 devices at /in/bridge/host print count-only, and my cpu is reaching 100%, so its already "large"?

The value which (in your use scenario) has to be observed is "IPv4 route prefixes" (and "IPv6 route prefixes") from L3HW offload help page. This table contains IP prefix and MAC address of next hop. For explanation how the table entries are used, read note 1 under the table. And I guess that IPv6 table is problematic in particular as each host can have at least 2 IPv6 addresses (link-local and one or more global address). For crs326-24g-2s+ the table is pretty short (13k entries for IPv4, 3k3 for IPv6, somewhere in between for hybrid IPv4/IPv6 deployment) and I can imagine that 2k dual-stack hosts can already exhaust the table capacity.

Who is online

Users browsing this forum: Bing [Bot], rarlup, zuna80 and 34 guests