Skip to content
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

respondd should make use of address ff05::2:1001 for mesh-wide broadcasts and use ff02::2:1001 for talking to its neighbors #984

Closed
christf opened this issue Dec 18, 2016 · 12 comments
Labels
0. type: enhancement The changeset is an enhancement 3. topic: babel Topic: Babel Layer 3 Routing
Milestone

Comments

@christf
Copy link
Member

christf commented Dec 18, 2016

this will work for both batman and babel networks but enable respondd-usage in babel networks.

this affects https://github.com/freifunk-gluon/gluon/blob/master/package/gluon-respondd/files/etc/init.d/gluon-respondd#L22

also it may be reasonable to extend respondd to handle teh distinction between ff02 and ff05

@neocturne neocturne added this to the 2016.3 milestone Dec 18, 2016
@rotanid rotanid added 3. topic: babel Topic: Babel Layer 3 Routing 0. type: enhancement The changeset is an enhancement labels Dec 19, 2016
@T-X
Copy link
Contributor

T-X commented Dec 19, 2016

For batman-adv meshes I would prefer sticking to ff02 for now. At least until MRD (multicast router discovery) snooping is implemented in the bridge + batman-adv.

@christf
Copy link
Member Author

christf commented Dec 19, 2016

does this mean I should split the package for now?

@neocturne
Copy link
Member

Please don't split the package. I'd really like to keep this consistent and switch the address to ff05::2:1001 for batman-adv as well.

I think the batman-adv multicast optimizations won't help here much; as long as respondd runs on all nodes, the package will need to reach every node anyways.

@christf
Copy link
Member Author

christf commented Dec 21, 2016

ok. I am using an upgrade script for now that modifies the initscript form respondd to obtain a testable babel firmware. This script can be removed easily once the address is changed globally

@jplitza
Copy link
Member

jplitza commented Dec 21, 2016

Can't we simply let respondd join both multicast groups?

@christf
Copy link
Member Author

christf commented Dec 21, 2016 via email

@jplitza
Copy link
Member

jplitza commented Dec 21, 2016

No it doesn't, and implementing it doesn't seem to be as easy as I first thought. But that seems to be the cleanest solution to me.

@christf
Copy link
Member Author

christf commented Dec 28, 2016

so. what shall it be?
a) extend respondd to join multiple multicast-groups

@christf
Copy link
Member Author

christf commented Dec 28, 2016

b) use ff05 for batman and babel-networks?

@christf
Copy link
Member Author

christf commented Feb 5, 2017

... what is actually to be done before batman-based networks can switch to ff05?

@T-X
Copy link
Contributor

T-X commented Feb 6, 2017

Ideally, the following would be done:

a) make the bridge join the "All-Snoopers-Multicast" address
b) make the bridge parse Multicast Router Advertisement and Multicast Router Termination messages and update its internal router list accordingly
c) make batman-adv parse the same messages to update its "WANT_ALL_IPV4" and "WANT_ALL_IPV6" multicast flags accordingly
d) then change a line in batman-adv to apply multicast optimizations for a multicast scope greater than link-local, too

Optionally, but recommended:

e) Make the bridge and/or batman-adv send Multicast Router Solicitations in some useful way.
f) If a bridge port is configured with "multicast_router = 2", then make the bridge send Multicast Router Advertisements on all other ports.

MRD is actually a pretty simple protocol, nothing compared to IGMP/MLD. And the infrastructure is basically already there (like there is a router list in the bridge already). So it is mostly about writing some MRD parsing code in the kernel.

On the other hand, @NeoRaider is right, if you have many receivers listening on your ff05 address (here: every node?), then we cannot apply batman-adv multicast optimizations and flooding is our only option again.

So I'm ok-ish with changing it to ff05 for this case where every node is supposed to listen to the address.

@christf
Copy link
Member Author

christf commented Feb 8, 2017

well, that would mean we could switch now by just changing the above initscript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. type: enhancement The changeset is an enhancement 3. topic: babel Topic: Babel Layer 3 Routing
Projects
None yet
Development

No branches or pull requests

5 participants