Hi Moritz,
On 08/08/2019 23:05, Moritz Warning wrote:
Hi,
the Freifunk network in Ulm has a batman_V network of >80 nodes. [0]
For the map, we use the link throughput value from batman-adv to calculate a link value (capped at 40 MBit/s for 100%). The default for VPN connections seem to be 1 MBit/s - when batman-adv doesn't know the throughput from the driver.
Is there a way to the set this throughput or can batman-adv measure it?
I think we discussed this topic in all its details (with Marek) during WMBv10, no?
However, if you need to refresh the concept, you can look at the function that takes care of selecting the throughput: batadv_v_elp_get_throughput() in bat_v_elp.c
The function is invoked for each neighbour/link across a given interface and can be summarized as follows: - if any throughput_override was set by the user for this iface, just use this value; - otherwise, if the iface is wifi, ask the wifi stack for the expected-throughput (computed by minstrel for ath9k and other SoftMAC drivers); - otherwise, ask the ethtool module if there is a known link speed for this iface; - otherwise, if none of the above worked, use the default throughput (1Mbps).
As also mentioned at WBMv10, Marek and I had worked on a patchset that enables the tp_meter to measure the speed of a link, when no other throughput is available (i.e. for VPN or other virtual links). The patchset is still pending here [1].
We suggested you to manifest your interest about that patchset, so that the discussion could move on, but it seemed you were not motivated enough (at least back then).
Maybe you could take this chance to revive that thread? :-)
Cheers,
[1] https://www.mail-archive.com/b.a.t.m.a.n@lists.open-mesh.org/msg17833.html
Thanks!