-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lets remove unneded vlans from protocol interfaces #581
Comments
+1 |
I agree in removing not neded vlans! |
It also would solve the problem with mediatek hardware switches |
So, not needed VLANs are Babeld, BMX*, OLSR* ones, right? |
Yes. We can start with babel protocol and see how it goes.
Yes. that's right |
vlan=0 can be used to disable the vlan. I added some fixes for this use in #593 |
Just noticed that Batman-adv has implemented (since long time) some VLAN mechanism on top of bat0 interface, see here and here. |
From here https://www.open-mesh.org/projects/batman-adv/wiki/Tweaking#VLAN-handling :
which sounds like the broadcast packets from a client will be limited on a single VLAN zone but the Batman-adv hello packages would go everywhere, does anyone know if this is correct? |
Yes, but a single VLAN zone built on top of batman-adv potentially span over the whole batman-adv mesh. Resuming vlans on top of batman-adv doesn't help with this issue. |
Why should we use a single one? What I was thinking was to use the Batman-adv's VLANs in a very similar way as we are using VLANs: the ID would depend on the network SSID. |
That would eventually split the broadcast domain, but not the topology of the L2 network, so it would have scalability problems. Also we don't use vlans for batman just to improve scalability, We use them also because batman-adv (or maybe just how they implemented the bat-adv configuration interface on owrt) "monopolize" (become master) of the interfaces it uses to send OGM etc, and interfaces can have only one master (so you cannot put the same interface both inside a bridge and use them for batman-adv OGM), when we create a vlan it is like it is another interface, so we put the raw interface inside the bridge and the vlan to batman-adv |
I agree with @G10h4ck about the use of VLAN to allow interoperability with linux bridge on the same physical interface. I know this is a problem with some (few) switches which refuse operating with both, tagged and untagged frames on the same port (which is why LiMe uses 802.1ad...?). |
Part of the reason why I thought having Batman-adv without VLAN was very important was the bug happening on Mediatek-based YouHua WR1200JS devices I reported here https://forum.openwrt.org/t/mediatek-and-vlan-802-1ad-on-ethernet/42346 But testing #726, this does not seem to be a terrible problem: the Batman-adv hello packets get crippled adding zeros and random data, but Batman-adv does not care and likes them anyway. Then the actual data gets routed through other interfaces (e.g. the Babeld one if 802.1q is used instead of 802.1ad i.e. adding a suffix in the So, in order to have these devices working also with ethernet we should just take care of removing VLAN usage from Babeld, for example with #631. |
As with Kernel 5.4 we switch MT7621 to the upstream DSA driver instead
of swconfig it'd be interesting to test with with OpenWrt master
snapshot and see if the issue still occurs there and if so, report
back to have it fixed -- interest should be much larger than to fix
anything in OpenWrt-specific driver which OpenWrt itself has dropped...
|
Thanks! I'm going to test with snapshot code from OpenWrt downloads website :) |
Update on the Mediatek 802.1ad bug: I confirmed it on OpenWrt snapshot with DSA and seems that the origin is in a small bug in the kernel: The pre-DSA bug was different but could have a very similar origin. This means that currently VLAN 802.1ad should not work on any device with a MediaTek switch. |
Small update: Still, the reasons for avoiding unneeded VLANs are still solid. #631 got outdated but if there is interest I can update it. |
The scenarios we are using in the networks doesn't need vlans for the protocols. Let's remove them to reduce complexity and bugs (like #580 )
The text was updated successfully, but these errors were encountered: