Re: [dtn-users] A problem with dtntunnel

"ssireskin@gmail.com" <ssireskin@gmail.com> Thu, 13 December 2012 13:39 UTC

Return-Path: <ssireskin@gmail.com>
X-Original-To: dtn-users@ietfa.amsl.com
Delivered-To: dtn-users@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6524121F89E8 for <dtn-users@ietfa.amsl.com>; Thu, 13 Dec 2012 05:39:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.372
X-Spam-Level:
X-Spam-Status: No, score=-3.372 tagged_above=-999 required=5 tests=[AWL=0.226, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IK9+wfIWROrZ for <dtn-users@ietfa.amsl.com>; Thu, 13 Dec 2012 05:39:55 -0800 (PST)
Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by ietfa.amsl.com (Postfix) with ESMTP id D422821F87F6 for <dtn-users@irtf.org>; Thu, 13 Dec 2012 05:39:54 -0800 (PST)
Received: by mail-ie0-f182.google.com with SMTP id s9so3982541iec.13 for <dtn-users@irtf.org>; Thu, 13 Dec 2012 05:39:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uL6GYgfK+FLG/475H7V1ym7e+QnYibyq8ohMZzdEUt4=; b=LN6nUkxf97UI2KSWrRSaoJbgaRiMuJkZld4ItMvJI/aWNmCE2/ZQC1SjZIU8Q38kIt C6oqhLlyvaPh3dLs81B2ism6yGwR7nbsGS4nYGaxzI82wPv+jWOgMUi8iWV8CG8sWkyx MbQARAByauiW5vgxf4pnFxWESPnZzhXiwyXnlLrasQxJS8yOTKDS81EoR9201pjLwY4p 9tr2PIImTh0IWdrmstLvctyRVy9kwLO6uUhbcQ+DNSWGk/nF2zOyGjjc/+N6TWCrWO7P IKuEFT0YnHEQyWx8e8YDyuGv6b9xH2uh1VtvgnrWWIzZO0kSUf5J+0aCUYuZxrLoLtM9 rZbQ==
MIME-Version: 1.0
Received: by 10.50.1.200 with SMTP id 8mr1547264igo.51.1355405994405; Thu, 13 Dec 2012 05:39:54 -0800 (PST)
Received: by 10.50.97.236 with HTTP; Thu, 13 Dec 2012 05:39:54 -0800 (PST)
In-Reply-To: <CAJR8z99A3M5FU_Xn6RXja+B=mQYMZ64AHa2HajtcN-AFXTn-xQ@mail.gmail.com>
References: <CAJR8z9--cVk67ac-aJ2haKpc=7LSVWHFXhTykaGcdpLQeevtiQ@mail.gmail.com> <04E3D99A62496240BCD6A576813E6E31E0BDBBA4FA@NDMSSCC05.ndc.nasa.gov> <CAJR8z98cbUhEPMyzR4Syp+Cd1xcg3Ei3u-UjykCQCGo2rBe9QA@mail.gmail.com> <04E3D99A62496240BCD6A576813E6E31E0BDBBA685@NDMSSCC05.ndc.nasa.gov> <CAJR8z98JoR2BGaSLer+u9k=Ok6iFroO0puqkDG2RpCzf=AxXng@mail.gmail.com> <04E3D99A62496240BCD6A576813E6E31E0BDECD834@NDMSSCC05.ndc.nasa.gov> <CAJR8z982h=jJSrEVqMQSbpi_7+yP_XRu4P-BNUU7ZAntDrkyyA@mail.gmail.com> <04E3D99A62496240BCD6A576813E6E31E0BDECD996@NDMSSCC05.ndc.nasa.gov> <CAJR8z98s9EAuBw2aYr6EjEwFgMLLSKykrzdo_U0zrKRzhuHmFQ@mail.gmail.com> <04E3D99A62496240BCD6A576813E6E31E0BDECDC13@NDMSSCC05.ndc.nasa.gov> <CAJR8z99A3M5FU_Xn6RXja+B=mQYMZ64AHa2HajtcN-AFXTn-xQ@mail.gmail.com>
Date: Thu, 13 Dec 2012 16:39:54 +0300
Message-ID: <CAJR8z9-ZoT98Ff0igASaA80a-g7DcNEQw9NhqZeEx5S1UUg-tw@mail.gmail.com>
From: "ssireskin@gmail.com" <ssireskin@gmail.com>
To: "Zoller, David A. (MSFC-EO60)[HOSC SERVICES CONTRACT]" <david.a.zoller@nasa.gov>
Content-Type: multipart/alternative; boundary="e89a8f502e0cd2aef404d0bc0cfb"
Cc: "dtn-users@irtf.org" <dtn-users@irtf.org>
Subject: Re: [dtn-users] A problem with dtntunnel
X-BeenThere: dtn-users@irtf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "The Delay-Tolerant Networking Research Group \(DTNRG\) - Users." <dtn-users.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/dtn-users>, <mailto:dtn-users-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/dtn-users>
List-Post: <mailto:dtn-users@irtf.org>
List-Help: <mailto:dtn-users-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/dtn-users>, <mailto:dtn-users-request@irtf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Dec 2012 13:39:55 -0000

Hi again,

I have added sock_.shutdown(SHUT_RDWR) in two places inside the while(1)
loop:
1) right before the sock_.close() call at line 486;
1) inside the if (sock_eof) {...} block of code just before the end of the
while(1) loop.

This seems to solve the problem with lost FINs.

Now I'm trying to stress-test dtntunnel with multiple concurrent iperf
transfers. With
10 flows dtntunnel works well, but when increasing the number of flows to
15 the
already seen weird things happen. The _sending_ iperf starts receiving SYN
packets
from dtntunnel. I think this could happen because of a race condition.

-- 
Best regards,
Sergey Sireskin