-
Notifications
You must be signed in to change notification settings - Fork 2k
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
gnrc/ipv6_auto_subnets: add option to derive subnet prefix from EUI #21080
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have enough knowledge on 6lo to judge the impact and fitness of this approach, but one minor comment below.
sys/net/gnrc/routing/ipv6_auto_subnets/gnrc_ipv6_auto_subnets.c
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine. As auto_subnets
is your creation I trust you testing.
You may squash and I will approve
Actually we can do a little better and preserve the unused bits e.g. when combining a /8 with a EUI-48 from an ethernet interface:
|
3fa9881
to
1f3c056
Compare
dadfd4f
to
74a311a
Compare
74a311a
to
a07f473
Compare
Ok, I dont't wanna start bikeshedidng now, but since you did some changes with |
Contribution description
This adds the
gnrc_ipv6_auto_subnets_eui
pseudo-module.We have a number of wireless 802.15.4 nodes that each have a set of wired nodes connected locally.
To limit communication over the wireless link (The
gnrc_ipv6_auto_subnets
sync algorithm creates O(n) messages and does not deal well with lost messages) an alternative scheme of assigning subnet prefixes is needed.Since this is a local sensor network, we can just choose a sufficiently small upstream prefix (e.g.
fd12::/16
) and create the downstream network by filling in the remaining bits with the EUI of the downstream wired interface.Testing procedure
We have an upstream router that distributes the
fd12::/16
prefix on the wireless network:make PREFIX_CONF=static IPV6_PREFIX="fd12::/16" -C examples/gnrc_border_router all term
A routing node that receives that prefix will create subnets for it's downstream interfaces based on their EUI
A node on the downstream (wired) network is able to ping the 6LBR:
Issues/PRs references