Difference between revisions of "Mesh/BATMAN-adv"

1,100 bytes added ,  02:43, 19 July 2014
updated batmand functions
(→‎Configure batctl: changed header)
(updated batmand functions)
Line 1: Line 1:
The [http://www.open-mesh.org/projects/batman-adv/wiki batman-adv] is an implementation of the [http://en.wikipedia.org/wiki/B.A.T.M.A.N. BATMAN routing protocol]. The protocol is configured with a file, but these settings can be changed with [http://downloads.open-mesh.org/batman/manpages/batctl.8.html batctl]. The advantage of routing using batman-adv, rather than [https://github.com/cjdelisle/cjdns cjdns], is its a layer two protocol, which can send all types of layers three packets (udp, tcp/ip, etc). The protocol "forwards all traffic until it reaches the destination, hence emulating a virtual network switch of all nodes participating. Therefore all nodes appear to be link local and are unaware of the network's topology as well as unaffected by any network changes.<ref>[http://www.open-mesh.org/projects/batman-adv/wiki/Wiki BATMAN advanced overview]</ref>"
The [http://www.open-mesh.org/projects/batman-adv/wiki batman-adv] is an implementation of the [http://en.wikipedia.org/wiki/B.A.T.M.A.N. BATMAN routing protocol]. The protocol is configured with a file, but these settings can be changed with [http://downloads.open-mesh.org/batman/manpages/batctl.8.html batctl]. The advantage of routing using batman-adv, rather than [https://github.com/cjdelisle/cjdns cjdns], is its a layer two protocol, which can send all types of layers three packets (udp, tcp/ip, etc). The protocol "forwards all traffic until it reaches the destination, hence emulating a virtual network switch of all nodes participating. Therefore all nodes appear to be link local and are unaware of the network's topology as well as unaffected by any network changes.<ref>[http://www.open-mesh.org/projects/batman-adv/wiki/Wiki BATMAN advanced overview]</ref>"


= batctl configuration=  
= [http://downloads.open-mesh.org/batman/manpages/batctl.8.html batctl] configuration=  


These are the main functions that change the configuration or adds a monitor:  
These are the main functions that change the configuration or adds a monitor:  
Line 13: Line 13:
* traceroute - tries to find the bat-host name if the given parameter was not a MAC address. It can also try to guess the MAC address using an IPv4/IPv6 address or a hostname when the IPv4/IPv6 address was configured on top of the batman-adv interface of the destination device and both source and destination devices are in the same IP subnet.
* traceroute - tries to find the bat-host name if the given parameter was not a MAC address. It can also try to guess the MAC address using an IPv4/IPv6 address or a hostname when the IPv4/IPv6 address was configured on top of the batman-adv interface of the destination device and both source and destination devices are in the same IP subnet.


= Wireless configuration =
= [http://downloads.open-mesh.org/batman/manpages/batmand.8.html batmand] configuration =
 
There functions to change the BATMAN configurations through [http://downloads.open-mesh.org/batman/manpages/batmand.8.html batmand]:
 
* s (visualization server) - Batman daemons may send their local  view  about their  single-hop  neighbors  to the vis server. It collects the information and provides data in  a  format  similar  to  [http://www.olsr.org/ OLSR's topology]  information  output.
* -o (originator interval in ms) - a node transmits broadcast messages  (we  call  them  originator message or OGM) to inform the neighboring does about it's existence.  Originator interval is the time to  wait  after  sending one  message  and  before  sending the next message. The default value is 1000 ms (1 second).  In a mobile network, you may  want to detect network changes very quickly, so you need to send message very often, for example, use a  value  of  500  ms.  In  a static  network, you can save bandwidth by using a higher value.
 
= configuration files =


This configuration is valid for [http://wiki.openwrt.org/about/history OpenWRT 12.09] (Attitude Adjustment), which uses BATMAN 2012.4.0. In newer versions, the version of BATMAN used is 2013.0.0 and the configuration of BATMAN slightly differs.
This configuration is valid for [http://wiki.openwrt.org/about/history OpenWRT 12.09] (Attitude Adjustment), which uses BATMAN 2012.4.0. In newer versions, the version of BATMAN used is 2013.0.0 and the configuration of BATMAN slightly differs.
289

edits