I just found out why my node is switching! Now I need to know if there's a way to tell it not to :)

It switches because the quality (/ 255) varies from 230 to 255 in each direction.

As soon as signal from node2 to node1 goes down from let's say 250 to 240, if another connection to the gateway's quality is 241, it'll switch as soon as it hits 240... Then when quality comes back up to 242, it switches back to node1.

I don't think it's very good to switch as soon as the quality is higher somewhere else, it should at least "give it a chance" by either having a threshold, or switch only if it's been in a more degraded state for more than x minutes, etc.

Is there something I can do to influence that? Did I miss a command line argument?

Thank you!

On 15-Apr-08, at 4:04 AM, Vinay Menon wrote:
Hello,

I too am stuck at a similar case would where in my remote node keeps jumping on and off the gateway even tho it has better signal strength form node1 .
i have node running as -r 2 atm when i had them on -r 3 the batman gateway crashed (batmand exited ungracefully leaving routes in table 66). now with -r2 it does not crash but keeps jumping at time.

I am using batman (r 963) on kamikaze 7.09 with kernel 2.6.21 and tun on gateway .i only have batman as routing daemon and have masqueraded output interfaces (referring to a previous solution for the -r 3 crash) .

Regards,
Vinay


On Mon, Apr 14, 2008 at 11:12 AM, Philippe April <isf_lists@philippeapril.com> wrote:
Hi!

I setup 3 nodes on OpenWRT Kamikaze and B.A.T.M.A.N 0.3, using atheros chipset.

My gateway is started this way: batmand -g 5Mbit/1Mbit -a some_subnet... ath0
My nodes: batmand -r 2 -a other_subnets... ath0

Let's call them "gateway", "node1", "node2".

"gateway" is in my basement.

"node1" is upstairs.

"node2" is in the shed.

node1's connection to gateway is strong.
node2's connection to gateway is very weak, about 50% packet loss.
node2's connection to node1 is strong.

Knowing this: does anybody have a clue to why my node2 keeps switching from node1 to gateway? I connect to node2 and ping on the internet constantly, I see the node switching back and forth from node1 to gateway, sending some of my packets to one, or the other... basically the user experience is horrible.

I was missing FW masquerading rules until yesterday, things were not working at all when I was not going through the gateway directly, but that "seems" to be resolved, now packets go by "sometimes". If node2 could stick to using node1, it would be easier to troubleshoot.

I'm trying to move my nodes as far as I can so it can't connect to the gateway directly at all from node2 but the shed does not seem to be far enough :)

Thanks for any enlightenment...

Philippe April
_______________________________________________
B.A.T.M.A.N mailing list
B.A.T.M.A.N@open-mesh.net
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n



--
Vinay Menon _______________________________________________
B.A.T.M.A.N mailing list
B.A.T.M.A.N@open-mesh.net
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n