Community discussions

MikroTik App
 
marekm
Member
Member
Topic Author
Posts: 391
Joined: Tue Feb 01, 2011 11:27 pm

Bridge split-horizon vs hw-offload

Sat Sep 22, 2018 3:42 pm

Some switch chips have a feature (also supported in SwOS - forwarding table) where for N ports there is matrix of NxN bits to allow forwarding between any combination of ingress/egress ports. Why isn't bridge split-horizon hw-offload implemented simply by grouping ports by the same nonzero horizon value and setting these bits in the switch chip appropriately for all such groups of ports? Seems simple to do, or am I missing something? Pseudo code:
for H in used nonzero horizon values
	for INGRESS in bridge ports where HORIZON==H
		for EGRESS in bridge ports where HORIZON==H
			set bit in switch chip to block forwarding from INGRESS to EGRESS
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11625
Joined: Thu Mar 03, 2016 10:23 pm

Re: Bridge split-horizon vs hw-offload

Sat Sep 22, 2018 10:16 pm

Some switch chips have a feature to deal with VLAN tags and VLAN-aware switching. Bridge vlan-filtering is not HW-offloaded simply by using this functionality ...
 
marekm
Member
Member
Topic Author
Posts: 391
Joined: Tue Feb 01, 2011 11:27 pm

Re: Bridge split-horizon vs hw-offload

Sun Sep 23, 2018 12:08 am

I use bridge VLAN filtering, and hw-offload works fine here on CRS328-24P-4S+ with ROS 6.42.7 and now 6.43.2 - as long as I don't try to isolate ports by setting horizon.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11625
Joined: Thu Mar 03, 2016 10:23 pm

Re: Bridge split-horizon vs hw-offload

Sun Sep 23, 2018 1:12 pm

I use bridge VLAN filtering, and hw-offload works fine here on CRS328-24P-4S+ with ROS 6.42.7 and now 6.43.2 - as long as I don't try to isolate ports by setting horizon.
CRS series 300 is AFAIK currently only HW that does HW offload non-trivial tasks. HW offload on all other device types is currently severely limited.
 
marekm
Member
Member
Topic Author
Posts: 391
Joined: Tue Feb 01, 2011 11:27 pm

Re: Bridge split-horizon vs hw-offload

Mon Sep 24, 2018 6:36 pm

Good to know, I thought VLAN was something basic that should be hw-offloaded on all products (except mixing tagged and untagged on the same port - "hybrid ports" are not supported by some cheap "smart" switches, it could be that some switch chips really can't do it even though they can do VLANs).
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11625
Joined: Thu Mar 03, 2016 10:23 pm

Re: Bridge split-horizon vs hw-offload

Mon Sep 24, 2018 7:25 pm

...I thought VLAN was something basic that should be hw-offloaded on all products ...
So did I :wink:

Who is online

Users browsing this forum: No registered users and 49 guests