Am 06.11.20 um 08:08 schrieb chrysn: > Hi, > > On Mon, Nov 02, 2020 at 12:26:43PM +0100, Martine Sophie Lenders wrote: >> UHCP (micro host configuration protocol) is a RIOT-proprietary protocol >> that was developed back in 2016 [1] > that begs the question of why it's still default. > > There's been some discussion on IRC on 2020-10-20 that concluded that > the remaining advantage is that the UHCP server can be host-built > everywhere.
Exactly, and there are no root privileges required to run it on a restricted port (which of course can be reconfigured). Also, when using the border router with the testbed [1] UHCP is currently the simplest way to get a prefix to a node, due to its easy provisioning and small footprint (on the A8 nodes, I don't believe a DHCPv6 server can be easily deployed). > I half expected dnsmasq to be used as a DHCPv6 server, but that seems > not to be the case; instead, dist/tools/dhcpv6-pd_ia has been added > recently (2020-03). > > Could, with some updates to the border router example setup scripts, > that or dnsmasq fill the gap? To my knowledge and last time I checked dnsmasq did not support server-side prefix delegation, if that is wrong: great, let's use it. `dist/tools/dhcpv6-pd_ia` is not a DHCPv6 server on its own, but a dispatcher script that installs and runs a DHCPv6 server, using the operating systems installation services (like APT or pacman). Currently, Kea [2] is used for that, again last time I checked, is the only open source DHCPv6 server, that supports prefix delegation. It has however the distinct disadvantage, that some configuration paths, like the pidfile are configured at compile time, and thus it requires root, even when a non-restricted port is used (main reason why UHCP still exists in my book). I think the simplest solution to get rid of UHCP could be, to have a very simple DHCPv6 server that just provides Prefix Delegation at hand, that could be compiled (if it is not a script) as fast as UHCPD can be and allows for easy non-root deployment. Cheers, Martine [1] https://www.iot-lab.info/learn/tutorials/riot/riot-public-ipv6-a8-m3/ [2] https://kea.isc.org/ > KR > chrysn > > > PS. The DHCPv6 client is working really smooth; except for some numbers > that needed increasing and one hack to prefer routable over ULAs, the > DHCPv6 version of the border router example works quite straightforward > with OpenWRT routers -- plug it in, install the missing CDC-ECM kernel > module from the GUI, assign usb0 to your LAN and off you go with real v6 > addresses being assigned to your devices! > > > _______________________________________________ > devel mailing list > devel@riot-os.org > https://lists.riot-os.org/mailman/listinfo/devel
signature.asc
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel