On Monday, 15 April 2024 10:20:20 CEST Berkay Demirci wrote:
In the test scenario, two nodes move away from each other so packet loss increases over time but it increases more in network 1, and since the throughput values are overriden, batman still chooses that network based on that value. Only when OGM messages stop reaching in network 1, batman switches to network 3 and we see the PDR increasing to 1 immediately when that happens.
Correct, the throughput override is a static value and does not adjust to a changing environment. On wireless interface the estimated throughput would be adjusted as the nodes move away from each other (batman-adv is able to read estimated throughput values from the WiFi driver).
Basically we want batman to be able to switch earlier than that and that's why I asked about the throughput meter implementation because the batman overriden throughput value doesn't consider packet losses.
Exactly, the throughput override does not consider anything other than the configured value.
Another idea we had was to manually change the throughput value via a script if packet loss increases too much or something like that, we haven't thought in detail yet. So I'm asking if you could have any suggestion that considers packet loss as well.
It seems you are attempting to simulate a wireless environment using wired devices. Wired devices typically can not "move away" from each other, hence you are running into this issue with your simulation approach.
Maybe mac80211 hwsim is an option for you? I've never used it, so can't provide specific suggestions.
Have you considered testing on a wireless testbed?
Otherwise, I'd also appreciate the assistance you could provide for the patches for tp fallback implementation. Does it work at all at its current state even with problems or is it not there yet?
Your question isn't entirely clear to me. As a first step, you'd have to rebase the tp meter patches to work on your chosen batman-adv version. How much work that might be is hard to ascertain without trying it.
Cheers, Marek