From patchwork Wed Oct 7 15:12:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: a X-Patchwork-Id: 5166 Return-Path: Received: from mail-fx0-f208.google.com (mail-fx0-f208.google.com [209.85.220.208]) by open-mesh.net (Postfix) with ESMTP id 3C2D215446A for ; Wed, 7 Oct 2009 15:48:02 +0000 (UTC) Received: by fxm4 with SMTP id 4so5312979fxm.40 for ; Wed, 07 Oct 2009 08:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=zi8kCnjPfrkjktCxMPSsl0sErPg438HHWkvdf27F5Vo=; b=UEICwmLqYmYjY/bRAeQ9m4+ksbhLBxmBFcZHHzzwUtSgl6UZNoH2hiIceRit/OJk7R mBh9mFbz5qfDiV1J3XmIbWfuDqt9dWS+rBOxBSMkik7kD+8ZsFm1IZ3RnVgcNGiJhx2p XNJO8dWwTGiT0qVPHHuyNyWM9pGjW8aWcm5ig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vhFCGSFU+pbI4G2krfVkvopaihQ2tAeHF3Tk1cyysDntQJ7HvvEzF7UjwBvpLFc+mR bYJaOTpZ+g5DS6DF+7eGWY/oX9pALm8jt3vz6yz9GTcKQ2xmvxhzyp8a46FrO75Tbe6n AcNVIPmLd7QUoLnTTaGdGXJAxd0V3t/eSnwWE= MIME-Version: 1.0 Received: by 10.86.249.30 with SMTP id w30mr75691fgh.35.1254928332538; Wed, 07 Oct 2009 08:12:12 -0700 (PDT) Date: Wed, 7 Oct 2009 17:12:12 +0200 Message-ID: From: a To: The list for a Better Approach To Mobile Ad-hoc Networking Subject: Re: [B.A.T.M.A.N.] batman-adv and TCP problem - SOLVED X-BeenThere: b.a.t.m.a.n@lists.open-mesh.net X-Mailman-Version: 2.1.11 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2009 15:48:02 -0000 Dear all, I have solved my problem. It is related to the TCP checksum offload function: I am using as embedded platform PCEngines Alix 3d2, that do not support this function (and also qemu virtual machines do not support it). This patch disable the tx checksum offload and everything now works fine for me! I’m not a kernel expert, and then let me know what do you think about this solution/workaround andrea On Tue, Oct 6, 2009 at 6:31 PM, a wrote: > Dear all, > > analyzing in deep the problem I have seen that the problem is the checksum: > as you can see in my previous .cap file, the packets with data from > 192.168.100.2 have a wrong checksum (and my nodes are not using the HW > checksum offload function) > Then, I’m starting to investigate how the checksum is calculated. If you > have any suggestion or comment, you are welcome! > > andrea > > > > > > On Tue, Oct 6, 2009 at 3:14 PM, a wrote: > >> Dear Marek, >> >> On Tue, Oct 6, 2009 at 2:55 PM, Marek Lindner wrote: >> >>> >>> Hi, >>> >>> > you can find as attachment the dump on eth2 of GW (tcpdump -ni eth2 -s >>> 0 -w >>> > gw.cap); >>> > the output of batctl td -p 4 eth1 is: >>> >>> I could not find anything revealing in the logs you provided. Could you >>> please >>> follow Sven's suggestion to log both ends as well ? >>> >>> I could log on every interface; I will do it and send .cap files. >> >> >>> Just to not forget the obvious: >>> * What batman-adv version are you running ? >>> >> revision 1439 >> >> >>> * GW1 routes the packets - does this work via NAT or do you manually add >>> >> GW1 routes packets, without NAT >> >> >>> routing entries to both ends ? >>> >>> >>> > A question: am I the first one with this problem? >>> >>> AFAIK batman-adv has no problem transporting TCP traffic (unless you >>> found an >>> undiscovered bug nobody has seen before). The most common source of >>> trouble is >>> the configuration of the setup, in particular MTU settings or routing >>> issues >>> (which is why most people simply bridge). >>> >> >> I understand your point about batman-adv; also for me, among batman nodes >> everything works fine. >> I will also test the system with bridge on GW >> >> >> andrea >> >>> >>> Regards, >>> Marek >>> _______________________________________________ >>> B.A.T.M.A.N mailing list >>> B.A.T.M.A.N@lists.open-mesh.net >>> https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n >>> >> >> > --- soft-interface.c.old 2009-10-07 17:10:25.000000000 +0200 +++ soft-interface.c 2009-10-07 17:00:29.000000000 +0200 @@ -114,7 +114,7 @@ #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29) */ dev->destructor = free_netdev; - dev->features |= NETIF_F_NO_CSUM; + /* dev->features |= NETIF_F_NO_CSUM; */ dev->mtu = hardif_min_mtu(); dev->hard_header_len = BAT_HEADER_LEN; /* reserve more space in the skbuff for our header */