Sven-Ola Tuecke | 1 Oct 2007 07:49
Picon

Re: Freifunk mesh set up

Morning,

that little howto suggests using 104.x.x.x adresses. Thats not wrong but has
a small disadvantage: They may be used in the internet one day. We use
104.x.x.x in Berlin for historic reasons and too many node owners to
convince so that IP allocation will stay in force. But I always recommend
using other IPs for a new mesh, e.g. 10.x.x.x.

You know the ping command - that's fine <ggg>. To be honest: there are
plenty of pitfalls you may stumble across. Look at the admin page (the page
displayed if you click on the top "admin" link. All entries should show a
green OK sign. 

The OLSR-DHCP function only does it's job, if you installed
the "freifunk-recommended-en" package. For a first-timer, I would not
recommend using this, because most newbies do not understand the underlying
IP calculation. They do not understand the output of the "ipcalc" command
and this alone leads to a lot confusion). Also: DHCP attracts brain-dead
software and users in the neighbourhood - which may or not may be your
intention. Simply attach a notebook to one of the LAN ports instead. Yes:
this requires the blue cable <ggg>

Do *not* change the local LAN IP address. This should stay "static" and
192.168.1.1 with 255.255.255.0. Do not try to set a manual default route.
Check the status page: Is the other WRT is in the neighbours list? Also
check the wireless status on the status page. All fine?

P.S.: If you cannot connect nor ping, I will need more info. Grab a PuTTY,
connect to one of the WRTs using SSH. Then enter these commands, cut-copy
the output to clipboard and send it along with your next query (if
(Continue reading)

Chemmanouel Genetz | 3 Oct 2007 17:01
Picon
Favicon

Selection Of WLAN to act as gateway

Hi all,
 
I have 3 nodes, each one has three wirelless interfaces. So i have a two hop Network. I 'm using olsrd as routing protocol
with LinkQuality Extensions enabled (ETX Metric), and all interfaces are participating in the routing 
 
------NODE1-------|------NODE2-------|----------NODE3----|
 
 I would like to ask, how olsrd daemon selects the interface to act as a gateway in order to have a route
from node 1 to node 3??
 
The network is not in adhoc mode. Some interfaces are clients, and the others are AP, and also node1 doesn't see node3 directly (two hop).
In other words, in node1, olsrd with what criterion selects the one of the three to act as a gateway
 
Thanks in advance!
 

Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! Try now!
--

-- 
Olsr-users mailing list
Olsr-users <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-users
Vinicius Pacheco | 9 Oct 2007 14:01
Picon

OLSR MIB plugin

Hello everybody,

It's been sometime now that the new version of the OLSR SNMP Agent
plugin for the olsrd 0.5.3 is available.
With it you can collect/modify the OLSRD parameters on the fly.
An OLSR MIB is also included with the descriptions of the objects.

Download at:

http://sourceforge.net/projects/olsrd-snmpd

Vinícius M. Pacheco

--

-- 
Olsr-users mailing list
Olsr-users <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-users

Bernd Petrovitsch | 10 Oct 2007 14:02
Picon
Favicon

Re: OLSR MIB plugin

On Die, 2007-10-09 at 09:01 -0300, Vinicius Pacheco wrote:
> Hello everybody,
> 
> It's been sometime now that the new version of the OLSR SNMP Agent
> plugin for the olsrd 0.5.3 is available.
> With it you can collect/modify the OLSRD parameters on the fly.
> An OLSR MIB is also included with the descriptions of the objects.

Cool. But I'm actually somewhat shortly before a new release and some
internal data structures (concerning the internal routingtable) changed
 - which were the primary reason for the "release candidate".

> Download at:
> 
> http://sourceforge.net/projects/olsrd-snmpd

Will try ASAP.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services

--

-- 
Olsr-dev mailing list
Olsr-dev <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-dev

aamahmoo | 11 Oct 2007 17:32
Picon
Picon

BMF overhead

Hello all,

I have recently joined the mailing list and wish you all a good day.

I have a question regarding the BMF overhead. As per my understanding  
the BMF overhead is 36 bytes i.e.
Outer IP          : 20 Bytes
UDP               : 8 Butes
BMF Encapsulation : 8 Bytes

I have simple scenario in which I am generating  multicast traffic  
between the two ad hoc nodes through MGEN 4.0 and logging at the  
receiver end at the same time. The task is to calculate the routing  
overhead due to OLSR. I already have an idea of the OLSR control  
messages and just want to confirm the BMF overhead as it encapsulates  
the multicast packets.

Thanks,
Aamir Mahmood

--

-- 
Olsr-users mailing list
Olsr-users <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-users

Erik Tromp | 11 Oct 2007 21:46
Picon
Favicon

Re: BMF overhead


Yes, you're perfectly right. BMF encapsulates in UDP, and adds an 8-byte BMF
header. After that header there is the IP-header of the original packet. So
in all, 36 bytes are added.

See also chapter 10 of the README_BMF.txt file.

Erik

-----Oorspronkelijk bericht-----
Van: olsr-users-bounces <at> lists.olsr.org
[mailto:olsr-users-bounces <at> lists.olsr.org] Namens aamahmoo <at> cc.hut.fi
Verzonden: donderdag 11 oktober 2007 17:33
Aan: olsr-users <at> lists.olsr.org
Onderwerp: [Olsr-users] BMF overhead

Hello all,

I have recently joined the mailing list and wish you all a good day.

I have a question regarding the BMF overhead. As per my understanding the
BMF overhead is 36 bytes i.e.
Outer IP          : 20 Bytes
UDP               : 8 Butes
BMF Encapsulation : 8 Bytes

I have simple scenario in which I am generating  multicast traffic between
the two ad hoc nodes through MGEN 4.0 and logging at the receiver end at the
same time. The task is to calculate the routing overhead due to OLSR. I
already have an idea of the OLSR control messages and just want to confirm
the BMF overhead as it encapsulates the multicast packets.

Thanks,
Aamir Mahmood

--
Olsr-users mailing list
Olsr-users <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-users

--

-- 
Olsr-users mailing list
Olsr-users <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-users

Adam Williams | 12 Oct 2007 16:20
Picon

help



On 10/12/07, olsr-users-request <at> lists.olsr.org < olsr-users-request <at> lists.olsr.org> wrote:
Send Olsr-users mailing list submissions to
        olsr-users <at> lists.olsr.org

To subscribe or unsubscribe via the World Wide Web, visit
         http://lists.olsr.org/mailman/listinfo/olsr-users
or, via email, send a message with subject or body 'help' to
        olsr-users-request <at> lists.olsr.org

You can reach the person managing the list at
        olsr-users-owner <at> lists.olsr.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Olsr-users digest..."


Today's Topics:

   1. BMF overhead (aamahmoo <at> cc.hut.fi)
   2. Re: BMF overhead (Erik Tromp)


----------------------------------------------------------------------

Message: 1
Date: Thu, 11 Oct 2007 18:32:58 +0300
From: aamahmoo <at> cc.hut.fi
Subject: [Olsr-users] BMF overhead
To: olsr-users <at> lists.olsr.org
Message-ID: <20071011183258.6ecu71w18oowco8o <at> webmail1.tkk.fi>
Content-Type: text/plain;       charset=ISO-8859-1;     DelSp="Yes";
        format="flowed"

Hello all,

I have recently joined the mailing list and wish you all a good day.

I have a question regarding the BMF overhead. As per my understanding
the BMF overhead is 36 bytes i.e.
Outer IP          : 20 Bytes
UDP               : 8 Butes
BMF Encapsulation : 8 Bytes

I have simple scenario in which I am generating  multicast traffic
between the two ad hoc nodes through MGEN 4.0 and logging at the
receiver end at the same time. The task is to calculate the routing
overhead due to OLSR. I already have an idea of the OLSR control
messages and just want to confirm the BMF overhead as it encapsulates
the multicast packets.

Thanks,
Aamir Mahmood




------------------------------

Message: 2
Date: Thu, 11 Oct 2007 21:46:36 +0200
From: "Erik Tromp" < erik_tromp <at> hotmail.com>
Subject: Re: [Olsr-users] BMF overhead
To: <aamahmoo <at> cc.hut.fi>,       <olsr-users <at> lists.olsr.org >
Message-ID: <BAY112-DAV1793BBEC0C7228B04AC90EF1A70 <at> phx.gbl>
Content-Type: text/plain;       charset="us-ascii"



Yes, you're perfectly right. BMF encapsulates in UDP, and adds an 8-byte BMF
header. After that header there is the IP-header of the original packet. So
in all, 36 bytes are added.

See also chapter 10 of the README_BMF.txt file.

Erik

-----Oorspronkelijk bericht-----
Van: olsr-users-bounces <at> lists.olsr.org
[mailto:olsr-users-bounces <at> lists.olsr.org ] Namens aamahmoo <at> cc.hut.fi
Verzonden: donderdag 11 oktober 2007 17:33
Aan: olsr-users <at> lists.olsr.org
Onderwerp: [Olsr-users] BMF overhead

Hello all,

I have recently joined the mailing list and wish you all a good day.

I have a question regarding the BMF overhead. As per my understanding the
BMF overhead is 36 bytes i.e.
Outer IP          : 20 Bytes
UDP               : 8 Butes
BMF Encapsulation : 8 Bytes

I have simple scenario in which I am generating  multicast traffic between
the two ad hoc nodes through MGEN 4.0 and logging at the receiver end at the
same time. The task is to calculate the routing overhead due to OLSR. I
already have an idea of the OLSR control messages and just want to confirm
the BMF overhead as it encapsulates the multicast packets.

Thanks,
Aamir Mahmood


--
Olsr-users mailing list
Olsr-users <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-users




------------------------------

_______________________________________________
Olsr-users mailing list
Olsr-users <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-users

End of Olsr-users Digest, Vol 5, Issue 5
****************************************

--

-- 
Olsr-users mailing list
Olsr-users <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-users
Bernd Petrovitsch | 20 Oct 2007 13:54
Picon
Favicon

olsrd-0.5.4 released

Hi all!

I just released olsrd-0.5.4 (if only that I can get more adventurous
stuff into the CVS which is brewing since weeks in several trees
hereover;-).

Major changes to 0.5.4rc1:
- from Sven-Ola Tücke: Do not forward packets with too low TTL (e.g.
  TTL == 0). This was in since ages and seems to be the reason for
  packet storms (using - at least - unnecessary bandwith and CPU power).
- from Hannes Gredler (together with Sven-Ola Tücke): Fixed a bug after
  changing (or downing and upping the interface with the main address)
  the IP address.

Thanks to all sending patches improving here and there major and minor
issues, using, testing and reporting - especially for the non-Linux-IPv4
parts and even more the things I break (like on *BSD).

If you think I forgot your patch, it is probably the case or the patch
was not against CVS-HEAD or 0.5.4rc1 (so I couldn't easily test it at
home). So please rebase it and send it over again (and maybe write
explicitly if it's intended for inclusion or not). Do not hesitate to
ask if rebasing is not that trivial - *eg* Hannes is hopefully around to
answer questions on the not-so-trivial changes.
E.g. I have one right now: If I walk through the routingtable with
"OLSR_FOR_ALL_RT_ENTRIES()", how do I distinguish HNA-announced routes
from OLSR-learned routes?

The full changelog (against 0.5.3) is:
----  snip  ----
QUAGGA by Immo 'FaUl' Wehrenberg <immo.olsr <at> do.bundessicherheitsministerium.de>
- updated to svn version 33

BMF PLUGIN  by Erik Tromp <erik_tromp <at> hotmail.com>
- updated to 1.5.1
- updated to latest plugin interfaces changes and killed warnings (by Bernd
  Petrovitsch <bernd <at> firmix.at>)

PATCH by Hannes Gredler <hannes <at> gredler.at> which rewrites the route handling.
To quote him:
----  snip  ----
change list:
- get rid of separate routing tables for HNA and per-node routes, everything is
  now unified in an AVL routing tree (&routingtree)

- introduce walking macros (OLSR_FOR_ALL_RT_ENTRIES()) that hide the internal
  structure of the RIB for making life of the plugin authors easier. 

- get rid of different SPF implementations for LQ and non-LQ code paths. a
  non-LQ edge is simply substituted with a cost of 1.0

- get rid of host masks - a new data type olsr_prefix is introduced which is
  basically an ip address plus a prefix length. 

  do not install the metric in the kernel FIB - for the kernel its pointless
  if the route gets installed with a metric of N or M. 

  we do not need to update the kernel FIB if we have hop count only changes 
  (for example if there is a reroute action further downstream)

  the only things which triggers a kernel FIB route update is a next hop
  change (a next hop is neighboring gateway router plus an interface).

  all OLSR routes are installed with a metric of 2

- separate between rt_entry and rt_path - the former is a route installed in the
  kernel with an next hop. the latter is a candidate for best path selection
  after SPF calculation has been done. in the rt_entry we keep a pointer to the
  best_path and also to the next hop that was installed in the kernel FIB.

  we always keep all originator of a route, if a route originator goes away we 
  can easy recompute the best path for the route.

  the next hop in the rt_entry gets only updated upon a successful route_add
  call - that way we always remember what next hop to delete. 

  stray routes should be history now.

- tweak the linked list toolkit to operate on circular lists.

- get rid of malloc calls for building the kernel update list. the list node is 
  now embedded in the rt_entry.

- introduce three queues (add/chg/del) for kernel updates.

- for neighbor route dependency tracking the neighbor routes are queued first or
  last (depending on which queue you work on)

- rework all the plugins which directly manipulate rt entries.

- rework the plugins that read from the routing table (most notably nameserver,
  httpinfo and quagga plugin)

- lots of comments that explains the intentions and purpose of this code-piece.

non RT related stuff:
- use a list rather than a tree for storing the post-SPF results, which further
  improves the raw-SPF runtime.

- add display of SPF runtime (masked behind #ifdef SPF_PROFILING)

- http://gredler.at/download/olsrd/neighbor_routes3.diff: This updates the own
  IP address (read: the main address) after changes (e.g. on
  `ifup wlan0; sleep 1; ifdown wlan0`) and kills the
  olsr_fill_routing_table_with_neighbors() function.
----  snip  ----
And Sven-Ola Tuecke <mail2news <at> commando.de> fixed an instability issue on interface
up/down operations (see 102-olsrd-rt-refactoring-fixes.patch below) and a missing
initialization.

PATCH by Hannes Gredler <hannes <at> gredler.at> which "consolidates
the link-state database and the spf-calculation in order
to calculate routes more efficiently".
To quote him (more):
----  snip  ----
- use the link-state (tc) database for SPF calculations rather than
  replicating the notion of vertices and edges for a SPF run.
  this heavily reduces malloc() calls and shrinks the total CPU
  load of the route calculation path between 60%-80%.
----  snip  ----

PATCHES by Sven-Ola Tücke <mail2news <at> commando.de> to be found on from
http://download-master.berlin.freifunk.net/sven-ola/nylon/packages/olsrd/files/
- 102-olsrd-rt-refactoring-fixes.patch
  Because you changed a lot of basics: It's time to handle a general
  flaw in the routing system. Plase take a look at chk_if_changed(). This
  will free() any "struct interface" pointer without warning at any time.
  This is why it's possile to SEGV olsrd with a simple "ifdown xxx".
  The patch replaces the (maybe) invalid pointer with an index reference
  "iif_index". You can always ask the OS for a name. Please note, that I do
  not have a working BSD toolchain, so I've placed an #error in the IPv6
  BSD-part where the author/porter has started to hack something funny.

- 110-olsrd-double-wlancard-neigh-hack.patch:
  This is a hack for Nodes having to wifi cards with the same channel,
  bssid, IP-Range etc. If two nodes can see each other by means of two
  possible links (here: two wifi cards with equal config), a bug is  triggered
  with the Neigh-is-SYM detections. This small little hack prevents this.

- 112-olsrd-nameservice-fixemptyname.patch:
  This is an addon to my lat/lon stuff which will prevent olsrd from
  running (oops?) if no hostname is given and the nameservice plugin
  is loaded.

- 113-olsrd-dyngwplain-pluginvers5.patch:
  This updates the dyngwplain plugin to the new Plugin Iface

- 140-olsrd-arprefreshed.patch:
  This is a new one. Opens a packet socket and listen to UDP(698), extract
  the sender MAC and refreshes the ARP cache whith that. Should speedup
  especially in cases, if you initially try to use a longer routing path which
  normally triggers a "ARP-Lookup-Chain".
- 106-olsrd-nameserviceparams.patch:
  This patch converts more plugins to the new interface version.
- 104-olsrd-policy-routing.patch
  Reworked this one to discard GPL helper functions. Also checked IPv6 and
  re-included the IPC hookup. The patch adds a "RtTable [number]" for
  /etc/olsrd.conf which is simply the Linux
  policy routing table to use. Defaults to 254 (== main).
  This patch was modified/clenaed up by <bernd <at> firmix.at> to use "#if"
  instead of "#ifdef" as it's more robust against typos.
- 110-olsrd-fixpacketprint.patch, 112-olsrd-nameservice-fixemptyname.patch,
  113-olsrd-txtinfo-fixhttpget.patch, 114-olsrd-timeoutlimit.patch,
  115-olsrd-nameserviceparamfix.patch and
  116-olsrd-fix-pluginparam-addons.patch fixing the compilation warning
  on 64bit and lots of other improvements.
- "Save the fish" patch: Avoid forwarding of packets with too low TTL. This
  kills lots of packet forwarding storms.
  NB: The oneliner was applied by hand by BP and formatted to look (in BPs O)
  more readable.

PATCH by Arnd Hannemann <hannemann <at> i4.informatik.rwth-aachen.de>
olsr_makefile_make_use_of_exename.patch
- This patch makes sure that the EXENAME variable of Makefile.inc is used
  in Makefile.

PATCHES by John Hay <jhay <at> meraka.org.za>
- update to new FreeBSD WLAN API
- do not require /bin/bash, use /bin/sh
- Fixed alignment so that olsrd runs on FreeBSD/arm
- allow more interface in an IPv6 subnet on FreeBSD
- use PREFIX and DESTDIR as all the other Makefile.$OS also for FreeBSD
- make txtinfo plugin work with IPv6

PATCH by Andreas Jacobs <jacobs <at> i4.informatik.rwth-aachen.de>
- fix the loss link quality calculation for "windows size % 4 != 0"

PATCH by Acinonyx <acinonyxs <at> yahoo.gr>
- Bug fix: include $(TOPDIR)/Makefile.inc at the begin in the Quagga plugin

PATCH by David Cornejo <dcornejo <at> gmail.com>
- fixed an "+=" of an uninitialized variable (detected with/by the
  scan.coverty.com).

BUG erported by Aaron Kaplan <aaron <at> lo-res.org>
- BSD-xargs doesn't know "-r".

PATCHES and CLEANUPS by Bernd Petrovitsch <bernd <at> firmix.at>
- Made a function from the ME_TO_DOUBLE() macro (in src/mantissa.h).
  This saves code throughout the code even on i386 and will even more
  on architectures without floating point units and "-msoft-float".
- And the mathemathics in src/mantissa.h is reformulated to minimize
  floating point operations to save CPU power - especially on embedded
  devices.
- I rewrote the half of src/lq_packet.[ch] which deals with incoming
  packets. This was triggered with performance output of gcc produced
  by Sven-Ola Tuecke at CCCamp07.
  This kills *lots* of (more than) superflous malloc()s and the same
  number of (free()s). And it also kills some code and copying around of
  data.
- Make it compile without warning with flex-2.5.33 (to be found on Fedora 7
  and Gentoo in Sep-2007) again.

- converted the dyn_gw plugin to plugin interface version 5 (which leaves
  the quagga plugion as the last with the old one).
- paving the way to activate -Wshadow, much more to do
- const-ify parameters here and there
- use NULL for pointers (and not "0")
- Killed "extern" declarations in (not generated) .c files

- Based on a patch by Gianni Costanzi <gianni.costanzi <at> gmail.com> (so credits
  and thanks have to go there):
  added OS_CFLAG_PTHREAD Makefile variable since gcc (on Linux) requests this
  in the manual page.
  Changes/additions:
  - I added definitions to all OS-specific Makefile.$OS with the value similar
    to the value in OS_LIB_PTHREAD (either empty or "-pthread").
  - The variable is added to CPPFLAGS (and not CFLAGS) since CPPFLAGS is used
    for all cpp and gcc calls (and gcc's man page indicates that it sets
    variables for both of them).
----  snip  ----

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services

--

-- 
Olsr-announce mailing list
Olsr-announce <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-announce
Bernd Petrovitsch | 20 Oct 2007 14:00
Picon
Favicon

Re: olsrd-0.5.4 released

Ooops, sorry:

On Sat, 2007-10-20 at 13:54 +0200, Bernd Petrovitsch wrote:
> Hi all!
> 
> I just released olsrd-0.5.4 (if only that I can get more adventurous
> stuff into the CVS which is brewing since weeks in several trees
> hereover;-).

You can find it of course in the CVS tagged with OLSRD_0_5_4 or
olsrd-0.5.4.tar.gz and olsrd-0.5.4.tar.bz2 in
http://bernd.petrovitsch.priv.at/olsr-ng/ until they make it to
http://www.olsr.org/

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services

--

-- 
Olsr-announce mailing list
Olsr-announce <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-announce

Hannes Gredler | 20 Oct 2007 15:25
Picon

Re: olsrd-0.5.4 released

On Sat, Oct 20, 2007 at 01:54:35PM +0200, Bernd Petrovitsch wrote:
| *eg* Hannes is hopefully around to
| answer questions on the not-so-trivial changes.
| E.g. I have one right now: If I walk through the routingtable with
| "OLSR_FOR_ALL_RT_ENTRIES()", how do I distinguish HNA-announced routes
| from OLSR-learned routes?

simple answer - you can't distinguish them in todays code this has been done on
(evil) purpose ;-) - see also change list:

| ----  snip  ----
| change list:
| - get rid of separate routing tables for HNA and per-node routes, everything is
|   now unified in an AVL routing tree (&routingtree)

what we could do is to introduce a bitfield in the flags field for
giving you and idea of the origin of a route (MID / OLSR main IP / HNA)

may i ask you why you want to make that distinction ?
why is it important to know the route origin ?

/hannes

--

-- 
Olsr-dev mailing list
Olsr-dev <at> lists.olsr.org
http://lists.olsr.org/mailman/listinfo/olsr-dev


Gmane