* [B.A.T.M.A.N.] TT inconsistency problem (again)
@ 2011-12-06 9:46 Marko Panger - AGB Lab
2011-12-06 11:09 ` Antonio Quartulli
0 siblings, 1 reply; 12+ messages in thread
From: Marko Panger - AGB Lab @ 2011-12-06 9:46 UTC (permalink / raw)
To: b.a.t.m.a.n
Hi,
I'm evaluating the possibility to use batman in our next product
(measurement equipment) and I'm facing problems in using batman.
I have five nodes installed around and I experience black-outs in
connection among nodes. The resoult is I can't ping a certain node anymore.
Here is the output from 'batctl o' and the subsequent ping to a node
which has good link quality (TQ):
[root@gtam00119 ~]# batctl o
[B.A.T.M.A.N. adv 2011.4.0, MainIF/MAC: ra0/48:5d:60:b8:a2:f6 (bat0)]
Originator last-seen (#/255) Nexthop [outgoingIF]:
Potential nexthops ...
48:5d:60:b8:a2:b7 0.974s (202) 48:5d:60:b8:a3:0e [ ra0]:
48:5d:60:b8:a2:d2 ( 0) 48:5d:60:b8:a3:0e (202)
48:5d:60:b8:a3:0e 0.439s (249) 48:5d:60:b8:a3:0e [ ra0]:
48:5d:60:b8:a2:d2 (231) 48:5d:60:b8:a3:0e (249)
48:5d:60:b8:a2:d2 0.749s (250) 48:5d:60:b8:a2:d2 [ ra0]:
48:5d:60:b8:a3:0e (235) 48:5d:60:b8:a2:d2 (250)
48:5d:60:b8:a2:ff 0.156s (209) 48:5d:60:b8:a3:0e [ ra0]:
48:5d:60:b8:a2:d2 ( 0) 48:5d:60:b8:a3:0e (209)
[root@gtam00119 ~]# batctl ping 48:5d:60:b8:a3:0e
PING 48:5d:60:b8:a3:0e (48:5d:60:b8:a3:0e) 20(48) bytes of data
Reply from host 48:5d:60:b8:a3:0e timed out
Reply from host 48:5d:60:b8:a3:0e timed out
Reply from host 48:5d:60:b8:a3:0e timed out
Reply from host 48:5d:60:b8:a3:0e timed out
And this is the output from 'batctl ll tt routes' from he node that is
being pinged (see above):
[ 63665] Sending TT_REQUEST to 48:5d:60:b8:a2:b7 via
48:5d:60:b8:a2:ff [.]
[ 63665] TT inconsistency for 48:5d:60:b8:a2:ff. Need to retrieve
the correct information (ttvn: 1 last_ttvn: 0 crc: 19133 last_crc: 0
num_changes: 0)
[ 63666] TT inconsistency for 48:5d:60:b8:a2:b7. Need to retrieve
the correct information (ttvn: 1 last_ttvn: 0 crc: 22851 last_crc: 0
num_changes: 0)
[ 63666] TT inconsistency for 48:5d:60:b8:a2:ff. Need to retrieve
the correct information (ttvn: 1 last_ttvn: 0 crc: 19133 last_crc: 0
num_changes: 0)
[ 63666] Sending TT_REQUEST to 48:5d:60:b8:a2:ff via
48:5d:60:b8:a2:ff [.]
[ 63667] TT inconsistency for 48:5d:60:b8:a2:b7. Need to retrieve
the correct information (ttvn: 1 last_ttvn: 0 crc: 22851 last_crc: 0
num_changes: 0)
[ 63667] TT inconsistency for 48:5d:60:b8:a2:ff. Need to retrieve
the correct information (ttvn: 1 last_ttvn: 0 crc: 19133 last_crc: 0
num_changes: 0)
[ 63668] TT inconsistency for 48:5d:60:b8:a2:b7. Need to retrieve
the correct information (ttvn: 1 last_ttvn: 0 crc: 22851 last_crc: 0
num_changes: 0)
[ 63668] TT inconsistency for 48:5d:60:b8:a2:ff. Need to retrieve
the correct information (ttvn: 1 last_ttvn: 0 crc: 19133 last_crc: 0
num_changes: 0)
[ 63669] TT inconsistency for 48:5d:60:b8:a2:b7. Need to retrieve
the correct information (ttvn: 1 last_ttvn: 0 crc: 22851 last_crc: 0
num_changes: 0)
This situation was triggered by the following procedure:
1) from node (last two octets) 'a2:f6' the 'a3:0e' node was pinged
2) in the middle a ssh connection from the node 'a2:f6' was made to the
node 'a3:0e'.
3) so far so good
4) the node 'a3:0e' was rebooted by issuing the 'reboot' command in the
console
5) after this the connection is lost and the above logs were produced
I'm using the version 2011.4.0 on all nodes:
[root@gtam00119 ~]# batctl -v
batctl 2011.4.0 [batman-adv: 2011.4.0]
Any help is highly appreciated. I might be doing something wrong, but
seems a stability problem.
Marko
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [B.A.T.M.A.N.] TT inconsistency problem (again)
2011-12-06 9:46 [B.A.T.M.A.N.] TT inconsistency problem (again) Marko Panger - AGB Lab
@ 2011-12-06 11:09 ` Antonio Quartulli
2011-12-06 11:11 ` Antonio Quartulli
2011-12-06 13:31 ` Marko Panger - AGB Lab
0 siblings, 2 replies; 12+ messages in thread
From: Antonio Quartulli @ 2011-12-06 11:09 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
Hello Marko,
thank you for reporting the issue and for the high quantity (and quality) of
information you are giving us.
On Tue, Dec 06, 2011 at 10:46:27AM +0100, Marko Panger - AGB Lab wrote:
> [root@gtam00119 ~]# batctl ping 48:5d:60:b8:a3:0e
> PING 48:5d:60:b8:a3:0e (48:5d:60:b8:a3:0e) 20(48) bytes of data
> Reply from host 48:5d:60:b8:a3:0e timed out
> Reply from host 48:5d:60:b8:a3:0e timed out
> Reply from host 48:5d:60:b8:a3:0e timed out
> Reply from host 48:5d:60:b8:a3:0e timed out
Starting from this point I would say that the problem is "before" the TT
mechanism. batctl ping do not relies on the TTs as it directly use originator
(node) addresses. Usually, in this cases, the problem is in the connection
between nodes (most likely on the layer below).
>
> And this is the output from 'batctl ll tt routes' from he node that is
> being pinged (see above):
>
[CUT]
From the log it is possible to see that the node is not receiving any TT_REPLY
message (which should solve the inconsistency being reported). This suggests us
that the previous statement is probably true ("the problem is 'before" the TT
mechanism").
Would you mind providing us the output of "batctl o" after the reboot on the
node where you take the tt log?
Moreover, could you please attach the output of "batctl td WIFI_IFACE" either on
the unreachable node and on another one (maybe a2:f6?)
Cheers,
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [B.A.T.M.A.N.] TT inconsistency problem (again)
2011-12-06 11:09 ` Antonio Quartulli
@ 2011-12-06 11:11 ` Antonio Quartulli
2011-12-06 13:31 ` Marko Panger - AGB Lab
1 sibling, 0 replies; 12+ messages in thread
From: Antonio Quartulli @ 2011-12-06 11:11 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Tue, Dec 06, 2011 at 12:09:02PM +0100, Antonio Quartulli wrote:
> Hello Marko,
>
> thank you for reporting the issue and for the high quantity (and quality) of
> information you are giving us.
>
> On Tue, Dec 06, 2011 at 10:46:27AM +0100, Marko Panger - AGB Lab wrote:
> > [root@gtam00119 ~]# batctl ping 48:5d:60:b8:a3:0e
> > PING 48:5d:60:b8:a3:0e (48:5d:60:b8:a3:0e) 20(48) bytes of data
> > Reply from host 48:5d:60:b8:a3:0e timed out
> > Reply from host 48:5d:60:b8:a3:0e timed out
> > Reply from host 48:5d:60:b8:a3:0e timed out
> > Reply from host 48:5d:60:b8:a3:0e timed out
>
> Starting from this point I would say that the problem is "before" the TT
> mechanism. batctl ping do not relies on the TTs as it directly use originator
> (node) addresses. Usually, in this cases, the problem is in the connection
> between nodes (most likely on the layer below).
>
> >
> > And this is the output from 'batctl ll tt routes' from he node that is
> > being pinged (see above):
> >
>
> [CUT]
>
> From the log it is possible to see that the node is not receiving any TT_REPLY
> message (which should solve the inconsistency being reported). This suggests us
> that the previous statement is probably true ("the problem is 'before" the TT
> mechanism").
>
>
> Would you mind providing us the output of "batctl o" after the reboot on the
> node where you take the tt log?
> Moreover, could you please attach the output of "batctl td WIFI_IFACE" either on
> the unreachable node and on another one (maybe a2:f6?)
I was wondering whether you can directly provide us two .cap file (I think they
are easier to inspect than looking at the batctl td output into an email :-))
Cheers,
>
> Cheers,
>
>
> --
> Antonio Quartulli
>
> ..each of us alone is worth nothing..
> Ernesto "Che" Guevara
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [B.A.T.M.A.N.] TT inconsistency problem (again)
2011-12-06 11:09 ` Antonio Quartulli
2011-12-06 11:11 ` Antonio Quartulli
@ 2011-12-06 13:31 ` Marko Panger - AGB Lab
2011-12-06 13:36 ` Marek Lindner
` (2 more replies)
1 sibling, 3 replies; 12+ messages in thread
From: Marko Panger - AGB Lab @ 2011-12-06 13:31 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
Hi Antonio,
Its a bit difficult to provide you a cap file as this is a tightly
embedded device (console only) and I would have to build wireshark for it.
I'm copy/pasting the required information from the batctl output for
both nodes.
If this doesn't help I will try to manage to get wireshark running, but
it will be tricky.
Here you go:
*** a3:0e - pinged node ***
> batctl o
[B.A.T.M.A.N. adv 2011.4.0, MainIF/MAC: ra0/48:5d:60:b8:a3:0e (bat0)]
Originator last-seen (#/255) Nexthop [outgoingIF]:
Potential nexthops ...
48:5d:60:b8:a2:b7 0.737s (206) 48:5d:60:b8:a2:ff [ ra0]:
48:5d:60:b8:a2:ff (206)
48:5d:60:b8:a2:d2 0.301s (207) 48:5d:60:b8:a2:d2 [ ra0]:
48:5d:60:b8:a2:ff ( 0) 48:5d:60:b8:a2:f6 (185) 48:5d:60:b8:a2:d2 (207)
48:5d:60:b8:a2:ff 0.554s (231) 48:5d:60:b8:a2:ff [ ra0]:
48:5d:60:b8:a2:ff (231)
48:5d:60:b8:a2:f6 0.303s (225) 48:5d:60:b8:a2:f6 [ ra0]:
48:5d:60:b8:a2:ff ( 0) 48:5d:60:b8:a2:d2 (193) 48:5d:60:b8:a2:f6 (225)
> batctl td ra0
14:39:00.652217 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:ff,
seq 74341, tq 255, ttvn 1, ttcrc 19133, ttl 50, v 14, flags [..F.],
length 26
14:39:00.754981 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74341, tq 236, ttvn 1, ttcrc 19133, ttl 49, v 14, flags [D...],
length 26
14:39:00.795184 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75781, tq 255, ttvn 1, ttcrc 53836, ttl 50, v 14, flags [..F.],
length 52
14:39:00.861530 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:f6,
seq 74341, tq 199, ttvn 1, ttcrc 19133, ttl 48, v 14, flags [....],
length 26
14:39:00.896005 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75781, tq 245, ttvn 1, ttcrc 53836, ttl 49, v 14, flags [D...],
length 26
14:39:00.898495 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:f6,
seq 75781, tq 243, ttvn 1, ttcrc 53836, ttl 49, v 14, flags [D...],
length 26
14:39:00.979211 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:ff,
seq 74267, tq 232, ttvn 1, ttcrc 22851, ttl 49, v 14, flags [D...],
length 26
14:39:01.005184 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:ff,
seq 75781, tq 219, ttvn 1, ttcrc 53836, ttl 48, v 14, flags [....],
length 26
14:39:01.082980 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74267, tq 214, ttvn 1, ttcrc 22851, ttl 48, v 14, flags [....],
length 26
14:39:01.191677 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:f6,
seq 74267, tq 180, ttvn 1, ttcrc 22851, ttl 47, v 14, flags [....],
length 26
14:39:01.193434 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:d2,
seq 74267, tq 174, ttvn 1, ttcrc 22851, ttl 47, v 14, flags [....],
length 26
14:39:01.234976 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a3:0e,
seq 73719, tq 255, ttvn 1, ttcrc 17841, ttl 50, v 14, flags [..F.],
length 26
Warning - packet contains unknown ether type: 0x0023
14:39:01.307481 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:f6,
seq 75714, tq 255, ttvn 1, ttcrc 42909, ttl 50, v 14, flags [..F.],
length 26
14:39:01.335458 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:f6,
seq 73719, tq 216, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:39:01.338096 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:d2,
seq 73719, tq 208, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:39:01.340180 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:ff,
seq 73719, tq 228, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
Warning - packet contains unknown ether type: 0x0023
14:39:01.410086 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75714, tq 200, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:39:01.410974 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75714, tq 223, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:39:01.520180 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:ff,
seq 75714, tq 199, ttvn 1, ttcrc 42909, ttl 48, v 14, flags [....],
length 26
Warning - packet contains unknown ether type: 0x0024
14:39:01.632188 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:ff,
seq 74342, tq 255, ttvn 1, ttcrc 19133, ttl 50, v 14, flags [..F.],
length 26
14:39:01.734978 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74342, tq 236, ttvn 1, ttcrc 19133, ttl 49, v 14, flags [D...],
length 26
14:39:01.775105 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75782, tq 255, ttvn 1, ttcrc 53836, ttl 50, v 14, flags [..F.],
length 26
14:39:01.882980 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75782, tq 245, ttvn 1, ttcrc 53836, ttl 49, v 14, flags [D...],
length 26
14:39:01.883597 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:f6,
seq 75782, tq 243, ttvn 1, ttcrc 53836, ttl 49, v 14, flags [D...],
length 26
14:39:01.962180 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:ff,
seq 74268, tq 232, ttvn 1, ttcrc 22851, ttl 49, v 14, flags [D...],
length 26
14:39:01.962307 BAT 48:5d:60:b8:a3:0e > 48:5d:60:b8:a2:b7: TT request,
ttvn 1, crc 17241, ttl 50, v 14, flags [Q.], length 19
14:39:01.987181 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:ff,
seq 75782, tq 215, ttvn 1, ttcrc 53836, ttl 48, v 14, flags [....],
length 26
14:39:02.062980 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74268, tq 214, ttvn 1, ttcrc 22851, ttl 48, v 14, flags [....],
length 26
14:39:02.163080 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:d2,
seq 74268, tq 174, ttvn 1, ttcrc 22851, ttl 47, v 14, flags [....],
length 26
14:39:02.163432 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:f6,
seq 74268, tq 184, ttvn 1, ttcrc 22851, ttl 47, v 14, flags [....],
length 26
14:39:02.214981 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a3:0e,
seq 73720, tq 255, ttvn 1, ttcrc 17841, ttl 50, v 14, flags [..F.],
length 26
14:39:02.287409 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:f6,
seq 75715, tq 255, ttvn 1, ttcrc 42909, ttl 50, v 14, flags [..F.],
length 26
14:39:02.320173 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:ff,
seq 73720, tq 224, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:39:02.323054 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:d2,
seq 73720, tq 208, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:39:02.324411 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:f6,
seq 73720, tq 220, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:39:02.395984 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75715, tq 223, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:39:02.502172 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:ff,
seq 75715, tq 196, ttvn 1, ttcrc 42909, ttl 48, v 14, flags [....],
length 26
Warning - packet contains unknown ether type: 0x0024
14:39:02.632172 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:ff,
seq 74343, tq 255, ttvn 1, ttcrc 19133, ttl 50, v 14, flags [..F.],
length 26
14:39:02.632296 BAT 48:5d:60:b8:a3:0e > 48:5d:60:b8:a2:ff: TT request,
ttvn 1, crc 48458, ttl 50, v 14, flags [Q.], length 19
14:39:02.738987 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74343, tq 236, ttvn 1, ttcrc 19133, ttl 49, v 14, flags [D...],
length 26
14:39:02.775127 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75783, tq 255, ttvn 1, ttcrc 53836, ttl 50, v 14, flags [..F.],
length 52
14:39:02.881976 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75783, tq 245, ttvn 1, ttcrc 53836, ttl 49, v 14, flags [D...],
length 26
14:39:02.898072 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:f6,
seq 74343, tq 202, ttvn 1, ttcrc 19133, ttl 48, v 14, flags [....],
length 26
14:39:02.898549 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:f6,
seq 75783, tq 244, ttvn 1, ttcrc 53836, ttl 49, v 14, flags [D...],
length 26
14:39:02.986092 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:ff,
seq 75783, tq 215, ttvn 1, ttcrc 53836, ttl 48, v 14, flags [....],
length 26
14:39:03.194984 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a3:0e,
seq 73721, tq 255, ttvn 1, ttcrc 17841, ttl 50, v 14, flags [..F.],
length 26
14:39:03.287378 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:f6,
seq 75716, tq 255, ttvn 1, ttcrc 42909, ttl 50, v 14, flags [..F.],
length 26
14:39:03.302076 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:d2,
seq 73721, tq 213, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:39:03.387046 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75716, tq 204, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:39:03.390972 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75716, tq 223, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:39:03.409318 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:f6,
seq 73721, tq 218, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [....],
length 26
14:39:03.494080 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:ff,
seq 75716, tq 196, ttvn 1, ttcrc 42909, ttl 48, v 14, flags [....],
length 26
Warning - packet contains unknown ether type: 0x0024
14:39:03.612075 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:ff,
seq 74344, tq 255, ttvn 1, ttcrc 19133, ttl 50, v 14, flags [..F.],
length 26
14:39:03.715988 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74344, tq 232, ttvn 1, ttcrc 19133, ttl 49, v 14, flags [D...],
length 26
14:39:03.757579 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75784, tq 255, ttvn 1, ttcrc 53836, ttl 50, v 14, flags [..F.],
length 52
14:39:03.818323 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:f6,
seq 74344, tq 202, ttvn 1, ttcrc 19133, ttl 48, v 14, flags [....],
length 26
14:39:03.857972 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75784, tq 245, ttvn 1, ttcrc 53836, ttl 49, v 14, flags [D...],
length 26
14:39:03.866305 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:f6,
seq 75784, tq 244, ttvn 1, ttcrc 53836, ttl 49, v 14, flags [D...],
length 26
14:39:03.936040 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:ff,
seq 74270, tq 228, ttvn 1, ttcrc 22851, ttl 49, v 14, flags [D...],
length 26
14:39:03.958032 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:ff,
seq 75784, tq 211, ttvn 1, ttcrc 53836, ttl 48, v 14, flags [....],
length 26
14:39:04.044974 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74270, tq 207, ttvn 1, ttcrc 22851, ttl 48, v 14, flags [....],
length 26
14:39:04.149031 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:d2,
seq 74270, tq 172, ttvn 1, ttcrc 22851, ttl 47, v 14, flags [....],
length 26
14:39:04.152304 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:f6,
seq 74270, tq 181, ttvn 1, ttcrc 22851, ttl 47, v 14, flags [....],
length 26
14:39:04.174979 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a3:0e,
seq 73722, tq 255, ttvn 1, ttcrc 17841, ttl 50, v 14, flags [..F.],
length 26
14:39:04.282022 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:d2,
seq 73722, tq 213, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:39:04.284278 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:f6,
seq 73722, tq 223, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:39:04.287260 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:f6,
seq 75717, tq 255, ttvn 1, ttcrc 42909, ttl 50, v 14, flags [..F.],
length 26
14:39:04.387019 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75717, tq 204, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:39:04.390981 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75717, tq 228, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:39:04.492026 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:ff,
seq 75717, tq 196, ttvn 1, ttcrc 42909, ttl 48, v 14, flags [....],
length 26
Warning - packet contains unknown ether type: 0x0024
14:39:04.612044 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:ff,
seq 74345, tq 255, ttvn 1, ttcrc 19133, ttl 50, v 14, flags [..F.],
length 26
*** a2:f6 - the pinging node ***
> batctl o
[B.A.T.M.A.N. adv 2011.4.0, MainIF/MAC: ra0/48:5d:60:b8:a3:0e (bat0)]
Originator last-seen (#/255) Nexthop [outgoingIF]:
Potential nexthops ...
48:5d:60:b8:a2:b7 0.737s (206) 48:5d:60:b8:a2:ff [ ra0]:
48:5d:60:b8:a2:ff (206)
48:5d:60:b8:a2:d2 0.301s (207) 48:5d:60:b8:a2:d2 [ ra0]:
48:5d:60:b8:a2:ff ( 0) 48:5d:60:b8:a2:f6 (185) 48:5d:60:b8:a2:d2 (207)
48:5d:60:b8:a2:ff 0.554s (231) 48:5d:60:b8:a2:ff [ ra0]:
48:5d:60:b8:a2:ff (231)
48:5d:60:b8:a2:f6 0.303s (225) 48:5d:60:b8:a2:f6 [ ra0]:
48:5d:60:b8:a2:ff ( 0) 48:5d:60:b8:a2:d2 (193) 48:5d:60:b8:a2:f6 (225)
> batctl td ra0
[B.A.T.M.A.N. adv 2011.4.0, MainIF/MAC: ra0/48:5d:60:b8:a2:f6 (bat0)]
Originator last-seen (#/255) Nexthop [outgoingIF]:
Potential nexthops ...
48:5d:60:b8:a2:b7 0.678s (109) 48:5d:60:b8:a3:0e [ ra0]:
48:5d:60:b8:a2:d2 ( 0) 48:5d:60:b8:a3:0e (109)
48:5d:60:b8:a3:0e 0.236s (229) 48:5d:60:b8:a3:0e [ ra0]:
48:5d:60:b8:a2:d2 (221) 48:5d:60:b8:a3:0e (229)
48:5d:60:b8:a2:d2 0.129s (255) 48:5d:60:b8:a2:d2 [ ra0]:
48:5d:60:b8:a3:0e (215) 48:5d:60:b8:a2:d2 (255)
48:5d:60:b8:a2:ff 0.350s (123) 48:5d:60:b8:a3:0e [ ra0]:
48:5d:60:b8:a2:d2 ( 0) 48:5d:60:b8:a3:0e (123)
> batctl td ra0
14:36:49.041049 BAT 48:5d:60:b8:a2:f6 > 48:5d:60:b8:a3:0e: ICMP echo
request, id 0, seq 349, ttl 50, v 14, length 20
14:36:49.130824 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75787, tq 232, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:36:49.132475 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75787, tq 245, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:36:49.255485 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74415, tq 245, ttvn 1, ttcrc 19133, ttl 49, v 14, flags [D...],
length 26
14:36:49.358633 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:f6,
seq 74415, tq 207, ttvn 1, ttcrc 19133, ttl 48, v 14, flags [....],
length 26
14:36:49.362841 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:d2,
seq 74415, tq 222, ttvn 1, ttcrc 19133, ttl 48, v 14, flags [....],
length 26
14:36:49.521508 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74341, tq 222, ttvn 1, ttcrc 22851, ttl 48, v 14, flags [....],
length 26
14:36:49.621615 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:f6,
seq 74341, tq 187, ttvn 1, ttcrc 22851, ttl 47, v 14, flags [....],
length 26
14:36:49.626827 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:d2,
seq 74341, tq 198, ttvn 1, ttcrc 22851, ttl 47, v 14, flags [....],
length 26
14:36:49.701512 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a3:0e,
seq 73793, tq 255, ttvn 1, ttcrc 17841, ttl 50, v 14, flags [..F.],
length 26
14:36:49.804611 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:f6,
seq 73793, tq 216, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:36:49.808848 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:d2,
seq 73793, tq 228, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:36:50.027648 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:f6,
seq 75788, tq 255, ttvn 1, ttcrc 42909, ttl 50, v 14, flags [..F.],
length 26
14:36:50.042210 BAT 48:5d:60:b8:a2:f6 > 48:5d:60:b8:a3:0e: ICMP echo
request, id 0, seq 350, ttl 50, v 14, length 20
14:36:50.132975 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75788, tq 245, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:36:50.136869 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75788, tq 228, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:36:50.236540 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74416, tq 245, ttvn 1, ttcrc 19133, ttl 49, v 14, flags [D...],
length 26
14:36:50.337854 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:d2,
seq 74416, tq 219, ttvn 1, ttcrc 19133, ttl 48, v 14, flags [....],
length 26
14:36:50.341625 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:f6,
seq 74416, tq 207, ttvn 1, ttcrc 19133, ttl 48, v 14, flags [....],
length 26
14:36:50.479864 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75856, tq 255, ttvn 1, ttcrc 53836, ttl 50, v 14, flags [..F.],
length 26
14:36:50.515565 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74342, tq 222, ttvn 1, ttcrc 22851, ttl 48, v 14, flags [....],
length 26
14:36:50.584567 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75856, tq 245, ttvn 1, ttcrc 53836, ttl 49, v 14, flags [D...],
length 26
14:36:50.587612 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:f6,
seq 75856, tq 232, ttvn 1, ttcrc 53836, ttl 49, v 14, flags [D...],
length 26
14:36:50.616881 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:d2,
seq 74342, tq 198, ttvn 1, ttcrc 22851, ttl 47, v 14, flags [....],
length 26
14:36:50.623613 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a2:f6,
seq 74342, tq 187, ttvn 1, ttcrc 22851, ttl 47, v 14, flags [....],
length 26
14:36:50.681581 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a3:0e,
seq 73794, tq 255, ttvn 1, ttcrc 17841, ttl 50, v 14, flags [..F.],
length 26
14:36:50.780881 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:d2,
seq 73794, tq 232, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:36:50.785631 BAT 48:5d:60:b8:a3:0e: OGM via neigh 48:5d:60:b8:a2:f6,
seq 73794, tq 216, ttvn 1, ttcrc 17841, ttl 49, v 14, flags [D...],
length 26
14:36:51.027651 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:f6,
seq 75789, tq 255, ttvn 1, ttcrc 42909, ttl 50, v 14, flags [..F.],
length 26
14:36:51.043367 BAT 48:5d:60:b8:a2:f6 > 48:5d:60:b8:a3:0e: ICMP echo
request, id 0, seq 351, ttl 50, v 14, length 20
14:36:51.128909 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75789, tq 232, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:36:51.134918 BAT 48:5d:60:b8:a2:f6: OGM via neigh 48:5d:60:b8:a3:0e,
seq 75789, tq 240, ttvn 1, ttcrc 42909, ttl 49, v 14, flags [D...],
length 26
14:36:51.216608 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74417, tq 245, ttvn 1, ttcrc 19133, ttl 49, v 14, flags [D...],
length 26
14:36:51.317910 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:d2,
seq 74417, tq 222, ttvn 1, ttcrc 19133, ttl 48, v 14, flags [....],
length 26
14:36:51.318637 BAT 48:5d:60:b8:a2:ff: OGM via neigh 48:5d:60:b8:a2:f6,
seq 74417, tq 207, ttvn 1, ttcrc 19133, ttl 48, v 14, flags [....],
length 26
14:36:51.479922 BAT 48:5d:60:b8:a2:d2: OGM via neigh 48:5d:60:b8:a2:d2,
seq 75857, tq 255, ttvn 1, ttcrc 53836, ttl 50, v 14, flags [..F.],
length 26
14:36:51.498638 BAT 48:5d:60:b8:a2:b7: OGM via neigh 48:5d:60:b8:a3:0e,
seq 74343, tq 222, ttvn 1, ttcrc 22851, ttl 48, v 14, flags [....],
length 26
Note that while the logs were produced the:
'batctl ping 48:5d:60:b8:a3:0e' command was running.
Marko
On 12/6/2011 12:09 PM, Antonio Quartulli wrote:
> Hello Marko,
>
> thank you for reporting the issue and for the high quantity (and quality) of
> information you are giving us.
>
> On Tue, Dec 06, 2011 at 10:46:27AM +0100, Marko Panger - AGB Lab wrote:
>> [root@gtam00119 ~]# batctl ping 48:5d:60:b8:a3:0e
>> PING 48:5d:60:b8:a3:0e (48:5d:60:b8:a3:0e) 20(48) bytes of data
>> Reply from host 48:5d:60:b8:a3:0e timed out
>> Reply from host 48:5d:60:b8:a3:0e timed out
>> Reply from host 48:5d:60:b8:a3:0e timed out
>> Reply from host 48:5d:60:b8:a3:0e timed out
> Starting from this point I would say that the problem is "before" the TT
> mechanism. batctl ping do not relies on the TTs as it directly use originator
> (node) addresses. Usually, in this cases, the problem is in the connection
> between nodes (most likely on the layer below).
>
>> And this is the output from 'batctl ll tt routes' from he node that is
>> being pinged (see above):
>>
> [CUT]
>
> > From the log it is possible to see that the node is not receiving any TT_REPLY
> message (which should solve the inconsistency being reported). This suggests us
> that the previous statement is probably true ("the problem is 'before" the TT
> mechanism").
>
>
> Would you mind providing us the output of "batctl o" after the reboot on the
> node where you take the tt log?
> Moreover, could you please attach the output of "batctl td WIFI_IFACE" either on
> the unreachable node and on another one (maybe a2:f6?)
>
> Cheers,
>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [B.A.T.M.A.N.] TT inconsistency problem (again)
2011-12-06 13:31 ` Marko Panger - AGB Lab
@ 2011-12-06 13:36 ` Marek Lindner
2011-12-06 13:38 ` Sven Eckelmann
2011-12-06 13:47 ` Marko Panger - AGB Lab
2 siblings, 0 replies; 12+ messages in thread
From: Marek Lindner @ 2011-12-06 13:36 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Tuesday, December 06, 2011 21:31:00 Marko Panger - AGB Lab wrote:
> Its a bit difficult to provide you a cap file as this is a tightly
> embedded device (console only) and I would have to build wireshark for it.
> I'm copy/pasting the required information from the batctl output for
> both nodes.
>
> If this doesn't help I will try to manage to get wireshark running, but
> it will be tricky.
No need to build wireshark. tcpdump also is able to capture the packets and
write them into a pcap file.
Regards,
Marek
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [B.A.T.M.A.N.] TT inconsistency problem (again)
2011-12-06 13:31 ` Marko Panger - AGB Lab
2011-12-06 13:36 ` Marek Lindner
@ 2011-12-06 13:38 ` Sven Eckelmann
2011-12-06 13:47 ` Marko Panger - AGB Lab
2 siblings, 0 replies; 12+ messages in thread
From: Sven Eckelmann @ 2011-12-06 13:38 UTC (permalink / raw)
To: b.a.t.m.a.n
[-- Attachment #1: Type: text/plain, Size: 342 bytes --]
On Tuesday 06 December 2011 14:31:00 Marko Panger - AGB Lab wrote:
> Hi Antonio,
>
> Its a bit difficult to provide you a cap file as this is a tightly
> embedded device (console only) and I would have to build wireshark for it.
tcpdump would also work. I will read through the logs later (or maybe Antonio
is faster).
Kind regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [B.A.T.M.A.N.] TT inconsistency problem (again)
2011-12-06 13:31 ` Marko Panger - AGB Lab
2011-12-06 13:36 ` Marek Lindner
2011-12-06 13:38 ` Sven Eckelmann
@ 2011-12-06 13:47 ` Marko Panger - AGB Lab
2011-12-06 13:49 ` Antonio Quartulli
2011-12-06 14:08 ` Sven Eckelmann
2 siblings, 2 replies; 12+ messages in thread
From: Marko Panger - AGB Lab @ 2011-12-06 13:47 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
I have to add that I had to modify the 'translation-table.c' file in
order to build the version I'm using. I was facing unresolved symbols
problems when loading the module due to the crc table. Thus, I added the
crc table at the beginning of the file. However as sometimes the ping
work I assumed this is not the root of the problem. Other than this no
modifications were made to the sources.
#include "soft-interface.h"
#include "hard-interface.h"
#include "send.h"
#include "hash.h"
#include "originator.h"
#include "routing.h"
//#include <linux/crc16.h>
u16 const crc16_table[256] = {
0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280,
0xC241,
0xC601, 0x06C0, 0x0780, 0xC741, 0x0500, 0xC5C1, 0xC481, 0x0440,
0xCC01, 0x0CC0, 0x0D80, 0xCD41, 0x0F00, 0xCFC1, 0xCE81, 0x0E40,
0x0A00, 0xCAC1, 0xCB81, 0x0B40, 0xC901, 0x09C0, 0x0880, 0xC841,
0xD801, 0x18C0, 0x1980, 0xD941, 0x1B00, 0xDBC1, 0xDA81, 0x1A40,
0x1E00, 0xDEC1, 0xDF81, 0x1F40, 0xDD01, 0x1DC0, 0x1C80, 0xDC41,
0x1400, 0xD4C1, 0xD581, 0x1540, 0xD701, 0x17C0, 0x1680, 0xD641,
0xD201, 0x12C0, 0x1380, 0xD341, 0x1100, 0xD1C1, 0xD081, 0x1040,
0xF001, 0x30C0, 0x3180, 0xF141, 0x3300, 0xF3C1, 0xF281, 0x3240,
0x3600, 0xF6C1, 0xF781, 0x3740, 0xF501, 0x35C0, 0x3480, 0xF441,
0x3C00, 0xFCC1, 0xFD81, 0x3D40, 0xFF01, 0x3FC0, 0x3E80, 0xFE41,
0xFA01, 0x3AC0, 0x3B80, 0xFB41, 0x3900, 0xF9C1, 0xF881, 0x3840,
0x2800, 0xE8C1, 0xE981, 0x2940, 0xEB01, 0x2BC0, 0x2A80, 0xEA41,
0xEE01, 0x2EC0, 0x2F80, 0xEF41, 0x2D00, 0xEDC1, 0xEC81, 0x2C40,
0xE401, 0x24C0, 0x2580, 0xE541, 0x2700, 0xE7C1, 0xE681, 0x2640,
0x2200, 0xE2C1, 0xE381, 0x2340, 0xE101, 0x21C0, 0x2080, 0xE041,
0xA001, 0x60C0, 0x6180, 0xA141, 0x6300, 0xA3C1, 0xA281, 0x6240,
0x6600, 0xA6C1, 0xA781, 0x6740, 0xA501, 0x65C0, 0x6480, 0xA441,
0x6C00, 0xACC1, 0xAD81, 0x6D40, 0xAF01, 0x6FC0, 0x6E80, 0xAE41,
0xAA01, 0x6AC0, 0x6B80, 0xAB41, 0x6900, 0xA9C1, 0xA881, 0x6840,
0x7800, 0xB8C1, 0xB981, 0x7940, 0xBB01, 0x7BC0, 0x7A80, 0xBA41,
0xBE01, 0x7EC0, 0x7F80, 0xBF41, 0x7D00, 0xBDC1, 0xBC81, 0x7C40,
0xB401, 0x74C0, 0x7580, 0xB541, 0x7700, 0xB7C1, 0xB681, 0x7640,
0x7200, 0xB2C1, 0xB381, 0x7340, 0xB101, 0x71C0, 0x7080, 0xB041,
0x5000, 0x90C1, 0x9181, 0x5140, 0x9301, 0x53C0, 0x5280, 0x9241,
0x9601, 0x56C0, 0x5780, 0x9741, 0x5500, 0x95C1, 0x9481, 0x5440,
0x9C01, 0x5CC0, 0x5D80, 0x9D41, 0x5F00, 0x9FC1, 0x9E81, 0x5E40,
0x5A00, 0x9AC1, 0x9B81, 0x5B40, 0x9901, 0x59C0, 0x5880, 0x9841,
0x8801, 0x48C0, 0x4980, 0x8941, 0x4B00, 0x8BC1, 0x8A81, 0x4A40,
0x4E00, 0x8EC1, 0x8F81, 0x4F40, 0x8D01, 0x4DC0, 0x4C80, 0x8C41,
0x4400, 0x84C1, 0x8581, 0x4540, 0x8701, 0x47C0, 0x4680, 0x8641,
0x8201, 0x42C0, 0x4380, 0x8341, 0x4100, 0x81C1, 0x8081, 0x4040
};
static inline u16 crc16_byte(u16 crc, const u8 data) {
return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff];
}
Marko
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [B.A.T.M.A.N.] TT inconsistency problem (again)
2011-12-06 13:47 ` Marko Panger - AGB Lab
@ 2011-12-06 13:49 ` Antonio Quartulli
2011-12-06 13:54 ` Marko Panger - AGB Lab
2011-12-06 14:08 ` Sven Eckelmann
1 sibling, 1 reply; 12+ messages in thread
From: Antonio Quartulli @ 2011-12-06 13:49 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Tue, Dec 06, 2011 at 02:47:06PM +0100, Marko Panger - AGB Lab wrote:
> I have to add that I had to modify the 'translation-table.c' file in
> order to build the version I'm using. I was facing unresolved symbols
> problems when loading the module due to the crc table. Thus, I added the
> crc table at the beginning of the file.
Because you probably didn't add the crc16 module in the openwrt menuconfig (you
are using openwrt right?)
> However as sometimes the ping
> work I assumed this is not the root of the problem. Other than this no
> modifications were made to the sources.
Actually we think that your issue is not correlated to TT, therefore this change
should not have nothing to do with the problem
Cheers,
>
> #include "soft-interface.h"
> #include "hard-interface.h"
> #include "send.h"
> #include "hash.h"
> #include "originator.h"
> #include "routing.h"
>
> //#include <linux/crc16.h>
>
> u16 const crc16_table[256] = {
> 0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280,
> 0xC241,
> 0xC601, 0x06C0, 0x0780, 0xC741, 0x0500, 0xC5C1, 0xC481, 0x0440,
> 0xCC01, 0x0CC0, 0x0D80, 0xCD41, 0x0F00, 0xCFC1, 0xCE81, 0x0E40,
> 0x0A00, 0xCAC1, 0xCB81, 0x0B40, 0xC901, 0x09C0, 0x0880, 0xC841,
> 0xD801, 0x18C0, 0x1980, 0xD941, 0x1B00, 0xDBC1, 0xDA81, 0x1A40,
> 0x1E00, 0xDEC1, 0xDF81, 0x1F40, 0xDD01, 0x1DC0, 0x1C80, 0xDC41,
> 0x1400, 0xD4C1, 0xD581, 0x1540, 0xD701, 0x17C0, 0x1680, 0xD641,
> 0xD201, 0x12C0, 0x1380, 0xD341, 0x1100, 0xD1C1, 0xD081, 0x1040,
> 0xF001, 0x30C0, 0x3180, 0xF141, 0x3300, 0xF3C1, 0xF281, 0x3240,
> 0x3600, 0xF6C1, 0xF781, 0x3740, 0xF501, 0x35C0, 0x3480, 0xF441,
> 0x3C00, 0xFCC1, 0xFD81, 0x3D40, 0xFF01, 0x3FC0, 0x3E80, 0xFE41,
> 0xFA01, 0x3AC0, 0x3B80, 0xFB41, 0x3900, 0xF9C1, 0xF881, 0x3840,
> 0x2800, 0xE8C1, 0xE981, 0x2940, 0xEB01, 0x2BC0, 0x2A80, 0xEA41,
> 0xEE01, 0x2EC0, 0x2F80, 0xEF41, 0x2D00, 0xEDC1, 0xEC81, 0x2C40,
> 0xE401, 0x24C0, 0x2580, 0xE541, 0x2700, 0xE7C1, 0xE681, 0x2640,
> 0x2200, 0xE2C1, 0xE381, 0x2340, 0xE101, 0x21C0, 0x2080, 0xE041,
> 0xA001, 0x60C0, 0x6180, 0xA141, 0x6300, 0xA3C1, 0xA281, 0x6240,
> 0x6600, 0xA6C1, 0xA781, 0x6740, 0xA501, 0x65C0, 0x6480, 0xA441,
> 0x6C00, 0xACC1, 0xAD81, 0x6D40, 0xAF01, 0x6FC0, 0x6E80, 0xAE41,
> 0xAA01, 0x6AC0, 0x6B80, 0xAB41, 0x6900, 0xA9C1, 0xA881, 0x6840,
> 0x7800, 0xB8C1, 0xB981, 0x7940, 0xBB01, 0x7BC0, 0x7A80, 0xBA41,
> 0xBE01, 0x7EC0, 0x7F80, 0xBF41, 0x7D00, 0xBDC1, 0xBC81, 0x7C40,
> 0xB401, 0x74C0, 0x7580, 0xB541, 0x7700, 0xB7C1, 0xB681, 0x7640,
> 0x7200, 0xB2C1, 0xB381, 0x7340, 0xB101, 0x71C0, 0x7080, 0xB041,
> 0x5000, 0x90C1, 0x9181, 0x5140, 0x9301, 0x53C0, 0x5280, 0x9241,
> 0x9601, 0x56C0, 0x5780, 0x9741, 0x5500, 0x95C1, 0x9481, 0x5440,
> 0x9C01, 0x5CC0, 0x5D80, 0x9D41, 0x5F00, 0x9FC1, 0x9E81, 0x5E40,
> 0x5A00, 0x9AC1, 0x9B81, 0x5B40, 0x9901, 0x59C0, 0x5880, 0x9841,
> 0x8801, 0x48C0, 0x4980, 0x8941, 0x4B00, 0x8BC1, 0x8A81, 0x4A40,
> 0x4E00, 0x8EC1, 0x8F81, 0x4F40, 0x8D01, 0x4DC0, 0x4C80, 0x8C41,
> 0x4400, 0x84C1, 0x8581, 0x4540, 0x8701, 0x47C0, 0x4680, 0x8641,
> 0x8201, 0x42C0, 0x4380, 0x8341, 0x4100, 0x81C1, 0x8081, 0x4040
> };
>
> static inline u16 crc16_byte(u16 crc, const u8 data) {
> return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff];
> }
>
>
> Marko
--
Antonio Quartulli
..each of us alone is worth nothing..
Ernesto "Che" Guevara
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [B.A.T.M.A.N.] TT inconsistency problem (again)
2011-12-06 13:49 ` Antonio Quartulli
@ 2011-12-06 13:54 ` Marko Panger - AGB Lab
2011-12-06 14:10 ` Marek Lindner
0 siblings, 1 reply; 12+ messages in thread
From: Marko Panger - AGB Lab @ 2011-12-06 13:54 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On 12/6/2011 2:49 PM, Antonio Quartulli wrote:
> Because you probably didn't add the crc16 module in the openwrt
> menuconfig (you are using openwrt right?)
No, I'm using a custom build kernel with Fedora 12 as the base.
> Actually we think that your issue is not correlated to TT, therefore this change
> should not have nothing to do with the problem
>
> Cheers,
I though it should be better to mention it to exclude any possible
ghost-seeking.
Marko
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [B.A.T.M.A.N.] TT inconsistency problem (again)
2011-12-06 13:47 ` Marko Panger - AGB Lab
2011-12-06 13:49 ` Antonio Quartulli
@ 2011-12-06 14:08 ` Sven Eckelmann
[not found] ` <4EDE241B.6040602@agblab.com>
1 sibling, 1 reply; 12+ messages in thread
From: Sven Eckelmann @ 2011-12-06 14:08 UTC (permalink / raw)
To: b.a.t.m.a.n
[-- Attachment #1: Type: text/plain, Size: 871 bytes --]
On Tuesday 06 December 2011 14:47:06 Marko Panger - AGB Lab wrote:
> I have to add that I had to modify the 'translation-table.c' file in
> order to build the version I'm using. I was facing unresolved symbols
> problems when loading the module due to the crc table. Thus, I added the
> crc table at the beginning of the file. However as sometimes the ping
> work I assumed this is not the root of the problem. Other than this no
> modifications were made to the sources.
It looks like a problem of the wlan hardware/driver (just by scrolling over
the log). The pinged node only receives broadcast messages but no unicast
messages ("ICMP" is unicast in this situation and OGM broadcast). This is a
first guess. So the node cannot request the changed table (thats why the
inconsistency problem doesn't go away) and ping packets don't get replied.
Kind regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [B.A.T.M.A.N.] TT inconsistency problem (again)
2011-12-06 13:54 ` Marko Panger - AGB Lab
@ 2011-12-06 14:10 ` Marek Lindner
0 siblings, 0 replies; 12+ messages in thread
From: Marek Lindner @ 2011-12-06 14:10 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Tuesday, December 06, 2011 21:54:34 Marko Panger - AGB Lab wrote:
> On 12/6/2011 2:49 PM, Antonio Quartulli wrote:
> > Because you probably didn't add the crc16 module in the openwrt
> > menuconfig (you are using openwrt right?)
>
> No, I'm using a custom build kernel with Fedora 12 as the base.
The standard kernel also selects the crc16 module for you as soon as batman-
adv is selected. Maybe you simply forgot to load the crc16 module ?
Regards,
Marek
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [B.A.T.M.A.N.] TT inconsistency problem (again)
[not found] ` <4EDE241B.6040602@agblab.com>
@ 2011-12-06 15:26 ` Sven Eckelmann
0 siblings, 0 replies; 12+ messages in thread
From: Sven Eckelmann @ 2011-12-06 15:26 UTC (permalink / raw)
To: Marko Panger - AGB Lab; +Cc: b.a.t.m.a.n
[-- Attachment #1.1: Type: text/plain, Size: 2092 bytes --]
On Tuesday 06 December 2011 15:18:03 Marko Panger - AGB Lab wrote:
> Sven,
Please don't mail me in private without a good reason. At least Cc
b.a.t.m.a.n@lists.open-mesh.org for batman-adv related things.
> This is a very important info. Gigabyte is the provider of the HW and if
> this is related to the driver I have to report them. We had some
> problems already with this driver as it doesn't set the cell number
> correctly.
It sounds more like Ralink... but that is not important right now ;)
But maybe you can provide more information about the driver (which exact
driver did you use, ...) because some people on the mailing list may have used
the same driver and know a workaround/fix.
> Could you give me a hint how to provide such information to them ?
The same way you contacted us... with a lot of information. But try to use a
small tool to send unicast packets in one direction and look if you can create
the same situation without batman-adv involved. IP is not the best solution
because it has to send more packets and therefore create more problems when
you just want to test a simple scenario. I usually use a small program that
directly sends one small ethernet frame to another node over the selected
interface while the other side only waits for this packet on a specific
interface. So nothing really complicated.
The receiver side has to start the program like this:
$ ./rawsend ra0
and the sender has to start it with the MAC of the receiver
$ ./rawsend ra0 ca:fe:ba:de:ba:be
The receiver will exit the rawsend after it finished the receive.
So start the setup without batman-adv. Try to contact the nodes, restart the
one node you always restarted in your tests and try to communicat with it. You
can also use broadcast (just use the mac ff:ff:ff:ff:ff:ff as target) to test
if unicast is the only problem.
I hope this helps to document the problem. This should allow the driver author
to debug/reproduce the whole scenario. But please send us more information
when this is not the problem and really batman-adv's fault.
Kind regards,
Sven
[-- Attachment #1.2: rawsend.c --]
[-- Type: text/x-csrc, Size: 2580 bytes --]
#include <stdio.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netpacket/packet.h>
#include <net/ethernet.h>
#include <stdint.h>
#include <string.h>
#include <arpa/inet.h>
#include <unistd.h>
int getmac(const char *src, unsigned char *dst)
{
unsigned int n[6];
int i;
if (sscanf(src, "%x:%x:%x:%x:%x:%x",
&n[0], &n[1], &n[2], &n[3], &n[4], &n[5]) != 6) {
if(sscanf(src, "%2x%2x.%2x%2x.%2x%2x",
&n[0], &n[1], &n[2], &n[3], &n[4], &n[5]) != 6) {
return 1;
}
}
for (i = 0; i < 6; i++) {
if (n[i] <= 255)
dst[i] = (unsigned char)n[i];
else
return 1;
}
return 0;
}
int main(int argc, char *argv[])
{
int rawsock;
uint16_t type = 0x1337;
struct ifreq req;
struct sockaddr_ll addr;
struct iovec vector[2];
char buf[256];
size_t size = 256;
struct ether_header header;
if (argc != 2 && argc != 3) {
fprintf(stderr, "Usage: %s DEVICE [DST-MAC]\n", argv[0]);
return 1;
}
if ((rawsock = socket(PF_PACKET, SOCK_RAW, htons(type))) < 0 ) {
fprintf(stderr, "Could not open raw socket\n");
return 1;
}
strncpy(req.ifr_name, argv[1], IFNAMSIZ);
if (ioctl(rawsock, SIOCGIFINDEX, &req) < 0) {
fprintf(stderr, "Could not find device %s\n", argv[1]);
return 1;
}
addr.sll_family = AF_PACKET;
addr.sll_protocol = htons(type);
addr.sll_ifindex = req.ifr_ifindex;
if (bind(rawsock, (struct sockaddr *)&addr, sizeof(addr)) < 0 ) {
fprintf(stderr, "Could not bind to device %s\n", argv[1]);
return 1;
}
strncpy(req.ifr_name, argv[1], IFNAMSIZ);
if (ioctl(rawsock, SIOCGIFHWADDR, &req) < 0) {
fprintf(stderr, "Could not get hwaddr of device %s\n", argv[1]);
return 1;
}
if (argc == 2) {
vector[0].iov_base = &header;
vector[0].iov_len = sizeof(struct ether_header);
vector[1].iov_base = buf;
vector[1].iov_len = size;
if (readv(rawsock, vector, 2) < 0) {
close(rawsock);
fprintf(stderr, "Could not receive message\n");
return 1;
}
printf("Received message\n");
} else if (argc == 3) {
vector[0].iov_base = &header;
vector[0].iov_len = sizeof(struct ether_header);
vector[1].iov_base = buf;
vector[1].iov_len = size;
header.ether_type = htons(type);
memcpy(header.ether_shost, req.ifr_hwaddr.sa_data, ETH_ALEN);
if (getmac(argv[2], header.ether_dhost)) {
close(rawsock);
fprintf(stderr, "Could not parse mac address %s\n", argv[2]);
return 1;
}
if (writev(rawsock, vector, 2) < 0) {
close(rawsock);
fprintf(stderr, "Could not send message\n");
return 1;
}
}
close(rawsock);
return 0;
}
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2011-12-06 15:26 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-06 9:46 [B.A.T.M.A.N.] TT inconsistency problem (again) Marko Panger - AGB Lab
2011-12-06 11:09 ` Antonio Quartulli
2011-12-06 11:11 ` Antonio Quartulli
2011-12-06 13:31 ` Marko Panger - AGB Lab
2011-12-06 13:36 ` Marek Lindner
2011-12-06 13:38 ` Sven Eckelmann
2011-12-06 13:47 ` Marko Panger - AGB Lab
2011-12-06 13:49 ` Antonio Quartulli
2011-12-06 13:54 ` Marko Panger - AGB Lab
2011-12-06 14:10 ` Marek Lindner
2011-12-06 14:08 ` Sven Eckelmann
[not found] ` <4EDE241B.6040602@agblab.com>
2011-12-06 15:26 ` Sven Eckelmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox