eclipse-leda / leda-distro

Eclipse Leda provides a Yocto-based build setup for SDV.EDGE components
https://eclipse-leda.github.io/leda/
Apache License 2.0
14 stars 8 forks source link

Network utilities for troubleshooting (Some/IP, Multicasting) #76

Open mikehaller opened 1 year ago

mikehaller commented 1 year ago

Is your feature request related to a problem? Please describe. During a hackathon preparation, we wanted to set up Some/IP multicast routing. Unfortunately, we at first didn't realize that we did not set up a specific routing, hence, the multicast messages went to the wrong network interface. We were looking at eth0, but the default route was wlan0.

We were also unsure whether the container with the Some/IP adapter was able to send/receive multicast packets to/from 239.0.0.1, since it uses veth (which is set up by kanto-cm).

For troubleshooting purposes, it would have been great to have network utilities available on the full quickstart image:

Describe the solution you'd like

Additional context It would also be great if sdv-health could verify that multicast networking is supported and the necessary Linux-level system settings are properly set (ip_forward, ip link set eth0 multicast on, ip route add ...) It should include a test as well, e.g. sending multicast pings (Note that ICMP is different and needs to be enabled AS WELL) and checking for responses.

d-s-e commented 8 months ago

I added some network tools.

Multicast is enabled by default. This can easily be checked with ip link show. If there is a problem with a specific application, it can be debugged with the available tools; I don't think that adding a generic check to sdv-health will make much sense.