public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* Re: [B.A.T.M.A.N.] originator tq_avg oscilations
@ 2009-06-24  8:28 Andrew Lunn
  2009-06-24 14:38 ` Marek Lindner
  2009-06-24 21:06 ` Linus Lüssing
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew Lunn @ 2009-06-24  8:28 UTC (permalink / raw)
  To: B.A.T.M.A.N

> If you are willing to test a few things to reduce the effect we can
> start right away. You could set TQ_GLOBAL_WINDOW_SIZE to 1 in order
> to deactivate the averaging of the TQ values. Aslo, some people
> reported that reducing the hop penalty also will increase the speed.

I already tried changing TQ_GLOBAL_WINDOW_SIZE to 5 instead of 10 and
that helped. Changing it to one is interesting. I've not tried it yet,
but i would of thought some ring buffer was needed to handle the 0s
which are added when originator messages are received for other
neighbors. 

I already tried reducing the hop penalty. However testing showed it
behaved worse. This i don't understand. So i'm guessing my test setup
changed between my different tests. So i need to run the test again,
both the control and the modified hop penalty.

What ideas do you have for improving the algorithms. Depending on the
scale of work needed i might have some time to do some coding.

     Andrew

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [B.A.T.M.A.N.] originator tq_avg oscilations
@ 2009-06-23 15:06 Andrew Lunn
  2009-06-23 20:00 ` Marek Lindner
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Lunn @ 2009-06-23 15:06 UTC (permalink / raw)
  To: B.A.T.M.A.N

Hi Folks

I've been playing with B.A.T.M.A.N advanced for a few weeks now. 

One of the scenarios where we might want to use it is nomadic
vehicles. Each vehicle has a wifi radio which is used to build a mesh
between the vehicles when the vehicles are parked together at a
location. I said the vehicles are nomadic. By that i mean they tend to
stay in one place for a while, and then move on. They can move
individually, or in groups. For the moment we are not interested in
meshing while on the move. 

I've run into a "problem" when one vehicle/node moves away from the
rest of the vehicles/nodes. It is taking a long time for the mesh to
realize the node has gone and rebuild the mesh. With a 500ms
orig_interval in our little test network, pings get lost for an
average of 26 seconds. The variation is great, sometimes it reroutes
in 10 seconds, sometimes in 50 seconds. 

So i want to improve this. The first thing i did was make some plots
of the tq_avg value, as shown in /proc/net/batman-adv/originators. I
look at one particular originator and plot the different tq_avg values
for the list of neighbors. Attaches is a png image showing this.

I was surprised to see that its unstable and oscillating. The
different tq_avg values mostly oscillate together, as shown in the
figure, but i've also seen cases when they oscillate 180 degrees out
of phase. In that case, the routing flips on the cross overs.

Is this normal? Is it expected behavior?

Has anybody worked on making re-routing around disappears nodes
faster?

        Thanks
                Andrew

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-06-25 19:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-24  8:28 [B.A.T.M.A.N.] originator tq_avg oscilations Andrew Lunn
2009-06-24 14:38 ` Marek Lindner
2009-06-24 21:06 ` Linus Lüssing
2009-06-25 19:47   ` Andrew Lunn
  -- strict thread matches above, loose matches on Subject: below --
2009-06-23 15:06 Andrew Lunn
2009-06-23 20:00 ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox