Override batman-adv routing?

66 views
Skip to first unread message

Peter Retief

unread,
Apr 22, 2014, 9:06:57 AM4/22/14
to village-...@googlegroups.com

Hi

 

I am having some variable quality voice in a mesh network using MP01’s running SECN 1.1-GA01 rv295.

 

I see some variability in routing to the gateway, even for nodes that have a fairly clear line of sight to the gateway, e.g.

 

root@MP-32:~# batctl tr tc-mohle

traceroute to tc-mohle (00:09:45:5b:69:ec), 50 hops max, 19 byte packets

1: oj-schoeman (00:09:45:5b:69:ac)  315.930 ms  71.443 ms  0.778 ms

2: tc-mohle (00:09:45:5b:69:ec)  4.008 ms  5.369 ms  2.818 ms

 

This is fairly consistent multi-hop route to the gateway for about five minutes.  Later, it goes direct again:

 

root@MP-32:~# batctl tr tc-mohle

traceroute to tc-mohle (00:09:45:5b:69:ec), 50 hops max, 19 byte packets

1: tc-mohle (00:09:45:5b:69:ec)  1.007 ms  0.934 ms  0.820 ms

 

For testing purposes (to see if this variation may be causing quality issues), can I fix the route to force it to go direct?

 

Peter

Song, Stephen

unread,
Apr 23, 2014, 11:23:23 AM4/23/14
to village-...@googlegroups.com
Hi Peter,

I think you can do this with the Hop Penalty variable.  From batman-adv docs:

hop penalty
Available since: batman-adv 2011.0.0

The hop penalty setting allows to modify batman-adv's preference for multihop routes vs. short routes. The value is applied to the TQ of each forwarded OGM, thereby propagating the cost of an extra hop (the packet has to be received and retransmitted which costs airtime). A higher hop penalty will make it more unlikely that other nodes will choose this node as intermediate hop towards any given destination. On the hand, a lower hop penalty will result in longer routes because retransmissions are not penalized.

cat /sys/class/net/bat0/mesh/hop_penalty 
15

Setting this to a higher number on a node you don't want chosen as a hop should help.  

Cheers... Steve



--
You received this message because you are subscribed to the Google Groups "Village Telco Development Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to village-telco-...@googlegroups.com.
To post to this group, send email to village-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/village-telco-dev/00cd01cf5e2b%24bf847f50%243e8d7df0%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Song

Peter Retief

unread,
Apr 23, 2014, 12:51:40 PM4/23/14
to village-...@googlegroups.com

Steve

 

Thanks – it would have been great if I could patch the one MP01 I want to force to use a direct route, rather than the intermediate MP01, which may act as relay for multiple MP01’s.

 

Peter

 

Wayne Abroue

unread,
Apr 24, 2014, 1:06:35 AM4/24/14
to village-telco-dev

Hi Peter

Many moons ago when bat-adv was in early dev, I seem to remember the devs talking about altering the dynamic routes. Maybe they can be statically hardwired.

Try posting on the bat-adv mailing list. I'm sure they will be able to assist.
b.a.t...@lists.open-mesh.org

Wayne

Reply all
Reply to author
Forward
0 new messages