public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: johnzeng <johnzeng2013@yahoo.com>
Cc: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] High latency with batman-adv on ethernet
Date: Fri, 21 Oct 2016 17:53:23 +0200	[thread overview]
Message-ID: <2233621.78qBEKtBva@bentobox> (raw)
In-Reply-To: <580A3456.5010002@yahoo.com>

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

On Freitag, 21. Oktober 2016 23:29:26 CEST johnzeng wrote:
> [root@alarmpi ~]# batctl -v
> batctl 2016.2 [batman-adv: 2016.3]

seems to be recent enough. You can compare my batman-adv settings
by just grepping /sys/class/net/bat0/mesh/*

    $ grep '' /sys/class/net/bat0/mesh/*
    /sys/class/net/bat0/mesh/aggregated_ogms:enabled
    /sys/class/net/bat0/mesh/ap_isolation:disabled
    /sys/class/net/bat0/mesh/bonding:disabled
    /sys/class/net/bat0/mesh/bridge_loop_avoidance:enabled
    /sys/class/net/bat0/mesh/distributed_arp_table:enabled
    /sys/class/net/bat0/mesh/fragmentation:enabled
    /sys/class/net/bat0/mesh/gw_bandwidth:10.0/2.0 MBit
    /sys/class/net/bat0/mesh/gw_mode:off
    /sys/class/net/bat0/mesh/gw_sel_class:20
    /sys/class/net/bat0/mesh/hop_penalty:30
    /sys/class/net/bat0/mesh/isolation_mark:0x00000000/0x00000000
    /sys/class/net/bat0/mesh/multicast_mode:enabled
    /sys/class/net/bat0/mesh/network_coding:disabled
    /sys/class/net/bat0/mesh/orig_interval:1000
    /sys/class/net/bat0/mesh/routing_algo:BATMAN_IV

Btw. there are also other things I've mentioned/asked in my first reply.

[...]
> tcpdump   from  hostA 10.10.130.88
> 
> 
> [root@alarmpi ~]# tcpdump -i bat0

I said wireshark 2.x and eth0. You maybe can use these dumps to
find out if your hardware delays/drops the packets which batman-adv
encapsulates. Btw. I can not debug your hardware/driver from remote
(when this is a hardware/driver problem).

Anyway, please also read my comment at the end.


You could also dump eth0 and bat0 at the same time to check that the incoming
batadv+icmp-request packet comes out of bat0 as icmp-request packet with
nearly no extra delay. And then you can check that the icmp-reply transmitted
via the bat0 interface is transmitted with nearly no extra delay via the eth0
interface as batadv+icmp-reply.

> from hostB 10.10.130.1  ping  hostA 10.10.130.88
[...]
> tcpdump   from  hostA 10.10.130.88
> 
> 
> [root@alarmpi ~]# tcpdump -i bat0
> 15:26:17.498686 IP bogon > bogon: ICMP echo request, id 626, seq 1, 
> 15:26:18.522626 IP bogon > bogon: ICMP echo reply, id 626, seq 1, length 64
> 15:26:18.523618 IP bogon > bogon: ICMP echo request, id 626, seq 2, 
> 15:26:19.244386 IP bogon > bogon: ICMP echo reply, id 626, seq 2, length 64

Are you sure that you are dumping on the system which receives the ping
requests and has to reply to the ping requests? Because then you problem seems
to be above batman-adv. The request was given upwards "15:26:17.498686" from
bat0 (so batman-adv isn't responsible for the packet anymore) and the reply
for it was given to bat0 at "15:26:18.522626". So over 1 second delay caused
by something above the batman-adv layer.

Kind regards,
	Sven


[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2016-10-21 15:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-21 14:31 i found time delay is very high and there are more caution info , if possible , please give me some advisement johnzeng
2016-10-21 14:43 ` [B.A.T.M.A.N.] " Sven Eckelmann
2016-10-21 15:11   ` [B.A.T.M.A.N.] High latency with batman-adv on ethernet Sven Eckelmann
2016-10-21 15:29     ` johnzeng
2016-10-21 15:53       ` Sven Eckelmann [this message]
2016-10-21 15:52     ` tiger
2016-10-24  5:11   ` i found time delay is very high and there are more caution info , if possible , please give me some advisement johnzeng
2016-10-24  6:29     ` [B.A.T.M.A.N.] High latency with batman-adv on ethernet Sven Eckelmann
2016-10-24  9:08       ` johnzeng
2016-10-24  9:14         ` [B.A.T.M.A.N.] " Sven Eckelmann
2016-10-24  9:45           ` johnzeng

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=2233621.78qBEKtBva@bentobox \
    --to=sven@narfation.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=johnzeng2013@yahoo.com \
    /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