[Olsr-users] Multi-hop OLSR

Song Gao (spam-protected)
Thu Oct 11 23:10:02 CEST 2012

Hi Ricardo,

Multiple hops are done by OLSRd automatically. It might because all of your
wireless devices are placed close to each other. If OLSRd sense they are
reachable, it won't set up multiple hops.

You can either use iptables to block certain nodes based on mac address, or
place your laptops far from each other. If, e.g., placed like this:
A ---- B ---- C
, where A and B can communicate, B and C can communicate, but A and C
cannot hear from each other, then OLSRd will definitely set multi-hops for

You can use "ip route" to get the routing table, or use traceroute command
to get hops on each node.

Song Gao

On Thursday, October 11, 2012 at 3:47 PM, Ricardo T. Macedo wrote:

Hi Song,

   Thanks for your help, but I would like to know how to enable the
multi-hop (just like in http://www.olsr.org/docs/report_html/node27.html).

Do you have any idea how I can enable this functionality?

Best regards,

On Thu, Oct 11, 2012 at 5:28 PM, Song Gao <(spam-protected)> wrote:

It's possible to use block certain node at link layer by using
iptables with --mac option. Check this page out:

By blocking certain nodes from one node based on mac address, OLSRd
control messages are also blocked, as a result, OLSRd would consider
the blocked nodes not reachable, and build multi-hop routing tables.

Kind regards,

On Thu, Oct 11, 2012 at 3:09 PM, Ben West <(spam-protected)> wrote:
> How are the laptops actually building the connections w/ each other?  I.e.
> over their wifi adapters, or over a wired LAN?
> Also, how are you ensuring the route N1 -> N2 -> N3?  If the laptops are
> meshing wirelessly, it may be difficult to ensure OLSR actually choses
> desired route, due to transient fluctuations in wifi signal quality.
> If you are not already doing so, I would recommend using the
> parameter on each node specify negative biases for the node(s) you do not
> want to be that node's next hop.
> On Thu, Oct 11, 2012 at 9:36 PM, Ricardo T. Macedo <(spam-protected)>
> wrote:
>> Hello,
>> I've been working with OLSR protocol and I want to reproduce a scenario
>> with multi-hops. I'm using iperf to generate traffic data packet in the
>> network.
>> In my tests, I'm using three notebooks with backtrack linux (backtrack 5
>> R2). Every notebook (nodes), I labeled by N1, N2 or N3. N1 can
>> with N3 only through N2, in multiple hop way. Every node is running OLSR
>> protocol. I try to run the iperf as a server in N1 ($ iperf -u -s -p
>> In N3, I run the iperf as a client ($ iperf -u -c <IP_address_N1> -p
>> In the node N3, I just run the OLSR protocol. In a single hop, I have no
>> problem, but in multi-hop it doesn't work. OLSR is finding the multi-hop
>> correctly, but when I try to send the data packet I get the "WARNING: did
>> not receive ack of last datagram after 10 tries" error.
>> Does anyone have any idea about what could be wrong?
>> Thanks,
>> Ricardo
>> --
>> Olsr-users mailing list
>> (spam-protected)
>> https://lists.olsr.org/mailman/listinfo/olsr-users
> --
> Ben West
> (spam-protected)
> --
> Olsr-users mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20121011/881ccd43/attachment.html>

More information about the Olsr-users mailing list