[B.A.T.M.A.N.] Bad link via ethernet using two tl-wr1043nd ports

Ilario Gelmetti
2014-06-22T10:33:08Z

[-- Attachment #1: Type: text/plain, Size: 2025 bytes --]

Hi all!
I'm using OpenWrt trunk (r41296) with batman-adv (2014.2.0) on a TP-Link
WR1043ND using this network configuration file:
http://sprunge.us/SVCI
as you can see batman is running on ports number 1 (eth0.3) and number 3
(eth0.4).

root@OpenWrt:~# batctl if
eth0.3: active
eth0.4: active

I connect this router via ethernet cable to another device running
batman-adv (2014.2.0).
Looking at the link quality with "batctl o" I noticed that sometimes the
link quality is poor using a port and good using the other one port. The
good and the bad port aren't fixed, they switch randomly, so I tend to
exclude an hardware problem. I connected the batman device to port 1
(eth0.3) and laptop on port 3 (eth0.4) and the quality of the batman
link changes from one boot to another:

root@OpenWrt:~# batctl o
[B.A.T.M.A.N. adv 2014.2.0, MainIF/MAC: eth0.3/10:fe:ed:7f:3e:80 (bat0
BATMAN_IV)]
Originator last-seen (#/255) Nexthop [outgoingIF]:
Potential nexthops ...
dc:9f:db:2c:e4:34 0.700s (255) dc:9f:db:2d:e4:34 [ eth0.3]:
dc:9f:db:2d:e4:34 (255)
dc:9f:db:2d:e4:34 0.360s (255) dc:9f:db:2d:e4:34 [ eth0.3]:
dc:9f:db:2d:e4:34 (255)

-----reboot & wait some minutes-----
good, 255
-----reboot & wait some minutes-----

root@OpenWrt:~# batctl o
[B.A.T.M.A.N. adv 2014.2.0, MainIF/MAC: eth0.4/10:fe:ed:7f:3e:80 (bat0
BATMAN_IV)]
Originator last-seen (#/255) Nexthop [outgoingIF]:
Potential nexthops ...
dc:9f:db:2c:e4:34 0.680s (119) dc:9f:db:2d:e4:34 [ eth0.3]:
dc:9f:db:2d:e4:34 (119)
dc:9f:db:2d:e4:34 0.580s (119) dc:9f:db:2d:e4:34 [ eth0.3]:
dc:9f:db:2d:e4:34 (119)

-----reboot & wait some minutes-----
good, 255
-----reboot & wait some minutes-----
bad, ~129
-----reboot & wait some minutes-----
bad, ~139
-----reboot & wait some minutes-----
bad, ~131
-----reboot & wait some minutes-----
good, 255

Thanks,
Ilario

--
Ilario Gelmetti
iochesonome@gmail.com
ilario.gelmetti@sns.it

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 246 bytes --]