public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: "Jochen Jägers" <jochen.jaegers@riedel-at.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] Some problems with batman-adv
Date: Mon, 14 May 2012 17:53:27 +0200	[thread overview]
Message-ID: <1337010808.2814.70.camel@E-PC-JJ> (raw)

Hello,

i try to set up a ad-hoc-mesh network with batman-adv.

There are three test-nodes with following configuration:

Nvidia Tegra 2 Dual Core ARM-Cortex A9 Processor with Linux 2.6.36.2
USB-Wifi Dongle with Ralink 5370 Chipset
Ralink rt5370sta driver kernel module
batman-adv 2012.1.0 (also tried with 2012.0.0)

I've set up the ad-hoc network with WPA-Encryption. This is working
fine. I can access all nodes if i configure the ra0 (ralink wifi)
interface with static ip addresses. I've done this for testing purpose
only. Normally only the bat0 interface has an ip address.

After wireless connection is established I activate the batman-adv
interface.

Example from first node:
modprobe batman-adv
batctl if add ra0                                                   
ifconfig bat0 up                                                      
ifconfig bat0 192.168.50.1 netmask 255.255.255.0
ifconfig bat0 mtu 1472

After booting up all nodes "batctl o" returns:
# batctl o
[B.A.T.M.A.N. adv 2012.1.0, MainIF/MAC: ra0/80:1f:02:38:7a:bf (bat0)]
  Originator      last-seen (#/255)           Nexthop [outgoingIF]:
Potential nexthops ...
00:0f:c9:22:00:17    0.020s   (248) 00:0f:c9:22:00:17 [       ra0]:
00:0f:c9:22:11:78 (245) 00:0f:c9:22:00:17 (248)
00:0f:c9:22:11:78    0.560s   (255) 00:0f:c9:22:11:78 [       ra0]:
00:0f:c9:22:00:17 (230) 00:0f:c9:22:11:78 (255)

So far everything looks fine. But if i try to connect to the other nodes
i mostly get no answers. No ping reply, no ssh or http connection. But
sometimes it works for a couple of minutes.
I also tried to ping with batctl but got unstable results:
first time everything looks good:

# batctl ping 00:0f:c9:22:00:17
PING 00:0f:c9:22:00:17 (00:0f:c9:22:00:17) 20(48) bytes of data
20 bytes from 00:0f:c9:22:00:17 icmp_seq=1 ttl=50 time=6.37 ms
20 bytes from 00:0f:c9:22:00:17 icmp_seq=2 ttl=50 time=13.22 ms
20 bytes from 00:0f:c9:22:00:17 icmp_seq=3 ttl=50 time=9.08 ms
^C--- 00:0f:c9:22:00:17 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss
rtt min/avg/max/mdev = 6.373/9.560/13.225/2.818 ms


another try a few moments later did not work:
# batctl ping 00:0f:c9:22:00:17
PING 00:0f:c9:22:00:17 (00:0f:c9:22:00:17) 20(48) bytes of data
Reply from host 00:0f:c9:22:00:17 timed out
Reply from host 00:0f:c9:22:00:17 timed out
Reply from host 00:0f:c9:22:00:17 timed out
Reply from host 00:0f:c9:22:00:17 timed out
^C--- 00:0f:c9:22:00:17 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss
rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms

i tried many different things (changing MTU, Wifi channel, encryption
SSID, batman-adv version,...) but the result was the same everytime.

Some further information:
# iwconfig 
lo        no wireless extensions.
dummy0    no wireless extensions.
usb0      no wireless extensions.
eth0      no wireless extensions.
ra0       Ralink STA  ESSID:"ceR{)|n$v#pp|fJX"  Nickname:"RT2870STA"
          Mode:Ad-Hoc  Frequency=2.442 GHz  Cell: DE:BB:8C:08:B8:EC   
          Bit Rate=36 Mb/s   
          RTS thr:off   Fragment thr:off
          Encryption key:D83E-521A-8B9F-7C95-3ACE-D477-****-****
Security mode:open
          Link Quality=52/100  Signal level:-71 dBm  Noise level:-71 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
bat0      no wireless extensions.

#ifconfig ra0
ra0       Link encap:Ethernet  HWaddr 80:1F:02:38:7A:BF  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:11 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:258771 (252.7 KiB)  TX bytes:13544 (13.2 KiB)

#ifconfig bat0
bat0      Link encap:Ethernet  HWaddr 02:DA:94:22:E1:67  
          inet addr:192.168.50.60  Bcast:192.168.50.255
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1472  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:434 (434.0 B)  TX bytes:686 (686.0 B)




Do you have any ideas what I can try to solve my problem or where to
search for a solution?

Thanks for any response.

Greetings,
-- 
Jochen Jägers

Dr. Riedel Automatisierungstechnik GmbH
Greifswalder Str. 4
10405 Berlin

Tel. 030/428431-48
Fax. 030/428431-99

http://www.riedel-at.de/

Geschäftsführer: Dr. Manfred Riedel
Amtsgericht Berlin Charlottenburg, HRB 39094
Umsatzsteuer-Identifikationsnummer DE 137 196 925




             reply	other threads:[~2012-05-14 15:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-14 15:53 Jochen Jägers [this message]
2012-05-14 16:37 ` [B.A.T.M.A.N.] Some problems with batman-adv Marek Lindner
2012-05-14 16:42 ` Elektra
2012-05-15 15:23   ` 3zl Trizonelabs
2012-05-15 16:24     ` Jochen Jägers
2012-05-15 18:43       ` 3zl Trizonelabs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1337010808.2814.70.camel@E-PC-JJ \
    --to=jochen.jaegers@riedel-at.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox