Difference between revisions of "Mesh/BATMAN-adv"

Jump to navigation Jump to search
1,356 bytes added ,  01:50, 22 July 2014
change the wording
(added network coding)
(change the wording)
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
= [http://downloads.open-mesh.org/batman/manpages/batctl.8.html 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 functions change BATMAN-adv configurations through batctl:  


* [http://downloads.open-mesh.org/batman/manpages/alfred-gpsd.html alfred-gpsd] - a used to distribute GPS location information about your batman-adv mesh network. This information could be, for example, combined with [http://www.open-mesh.org/projects/batmand/wiki/VisualizeMesh vis] to visualize your mesh topology with true geographic layout. The server fetches the information from locals nodes serving data from [http://manpages.ubuntu.com/manpages/karmic/en/man8/gpsd.8.html gpsd].  
* [http://downloads.open-mesh.org/batman/manpages/alfred-gpsd.html alfred-gpsd] - a used to distribute GPS location information about your batman-adv mesh network. This information could be, for example, combined with [http://www.open-mesh.org/projects/batmand/wiki/VisualizeMesh vis] to visualize your mesh topology with true geographic layout. The server fetches the information from locals nodes serving data from [http://manpages.ubuntu.com/manpages/karmic/en/man8/gpsd.8.html gpsd].  
Line 16: Line 16:
= [http://downloads.open-mesh.org/batman/manpages/batmand.8.html batmand] 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]:  
There functions change 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.
* 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  [http://www.open-mesh.org/projects/batman-adv/wiki/OGM originator message or OGM], [http://www.open-mesh.org/projects/batman-adv/wiki/Ogm-v2 version 2]) 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.
* o (originator interval in ms) - a node transmits broadcast messages  (we  call  them  [http://www.open-mesh.org/projects/batman-adv/wiki/OGM originator message or OGM], [http://www.open-mesh.org/projects/batman-adv/wiki/Ogm-v2 version 2]) 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 =
= Configuration files =
== Device configuration ==


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.
Line 57: Line 58:
Write some of this stuff down for reference later! You might need it!
Write some of this stuff down for reference later! You might need it!


= Network configuration =
== Network configuration ==


In /etc/config/network:
In /etc/config/network:
Line 87: Line 88:
</pre>
</pre>


= BATMAN configuration =
== BATMAN configuration ==


In /etc/config/batman-adv:
There are [http://www.open-mesh.org/projects/batman-adv/wiki/Tweaking other options], but these are the recommended settings in /etc/config/batman-adv:


<pre>
<pre>
config mesh 'bat0'
config mesh 'bat0'
option interfaces 'adhoc0' # the interface for which to enable batman0
option interfaces 'adhoc0' # the interface for which to enable batman0
option 'aggregated_ogms' # no idea what this means
option 'aggregated_ogms'
option 'ap_isolation' # no idea what this means
option 'ap_isolation'
</pre>
</pre>


= System configuration =
* [http://www.open-mesh.org/projects/batman-adv/wiki/Tweaking aggregated_ogms] - an option that combines the [http://www.open-mesh.org/projects/batman-adv/wiki/OGM originator messages] into a single packet instead of a lot of smaller packets.
* [http://www.open-mesh.org/projects/batman-adv/wiki/Ap-isolation ap_isolation] - an option that prevents any communication between stations connected to the same access point. The clients of the access point won't be able to communicate to each other, which makes it more secure, but less efficient for networking. There's [http://www.open-mesh.org/projects/batman-adv/wiki/Extended-Isolation extended ap isolation], which prevents all the wirelsss-to-wireless traffic and at the same time marks clients as isolated based on the user configuration.
* multicast mode - an option that reduces unnecessary packet transmissions. This optimization announces multicast listeners via the translation table mechanism, thereby signaling interest in certain multicast traffic instead of all of it. If disabled multicast traffic is forwarded to the every node in the network (broadcast).
* [http://www.open-mesh.org/projects/batman-adv/wiki/Understand-your-batman-adv-network routing_algo] - an option to change the routing algorithm.
 
== System configuration ==


In /etc/config/system you can set hostname and timezone. This is not strictly necessary for BATMAN to work, but it should be set correctly. The below timezone is correct for the pacific U.S. timezone. The naming convention for hostnames is: <router-model-name>-<some-unique-name-you-choose>
In /etc/config/system you can set hostname and timezone. This is not strictly necessary for BATMAN to work, but it should be set correctly. The below timezone is correct for the pacific U.S. timezone. The naming convention for hostnames is: <router-model-name>-<some-unique-name-you-choose>
289

edits

Navigation menu