Re: [dtn-users] Ping Failed when use ad-hoc mode

Carlo Caini <carlo.caini@unibo.it> Wed, 02 September 2015 13:37 UTC

Return-Path: <prvs=2687150341=carlo.caini@unibo.it>
X-Original-To: dtn-users@ietfa.amsl.com
Delivered-To: dtn-users@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DDF391A21C7 for <dtn-users@ietfa.amsl.com>; Wed, 2 Sep 2015 06:37:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.031
X-Spam-Level:
X-Spam-Status: No, score=-0.031 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_IT=0.635, HOST_EQ_IT=1.245, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dG5z0HhAqO8t for <dtn-users@ietfa.amsl.com>; Wed, 2 Sep 2015 06:36:55 -0700 (PDT)
Received: from mx01.unibo.it (mx01.unibo.it [137.204.24.54]) by ietfa.amsl.com (Postfix) with ESMTP id 0C4371A8988 for <dtn-users@irtf.org>; Wed, 2 Sep 2015 06:36:53 -0700 (PDT)
X-AuditID: 89cc1836-f79186d0000023b3-5b-55e6fb7488ba
Received: from mail.unibo.it (e10-hc3-dr.unibo.loc [10.11.1.41]) by mx01.unibo.it (UNIBO) with SMTP id D5.67.09139.47BF6E55; Wed, 2 Sep 2015 15:36:52 +0200 (CEST)
Received: from E10-MBX3-DR.personale.dir.unibo.it ([169.254.3.191]) by E10-HC3-DR.personale.dir.unibo.it ([10.11.1.41]) with mapi id 14.03.0224.002; Wed, 2 Sep 2015 15:36:52 +0200
From: Carlo Caini <carlo.caini@unibo.it>
To: Ahmad Zainudin <ahmad.zainudin.milist@gmail.com>, "dtn-users@irtf.org" <dtn-users@irtf.org>
Thread-Topic: [dtn-users] Ping Failed when use ad-hoc mode
Thread-Index: AQHQ5SYhrozHqHhv70+28KYU8hegDZ4oaR8AgADRzR0=
Date: Wed, 02 Sep 2015 13:36:51 +0000
Message-ID: <FF1750B0EDD9434A98CD71DA0C0357260132F9D0C1@E10-MBX3-DR.personale.dir.unibo.it>
References: <CAGO8Fv4oPvUiu_4pWMW8D7WuSLZXcH7+A45=c9PzYcKs2r4=4Q@mail.gmail.com>, <CAGO8Fv4x8tZoC1st6PDmNx4CLAvQgLdhDm9GHMu7o1rBqr3x-w@mail.gmail.com>
In-Reply-To: <CAGO8Fv4x8tZoC1st6PDmNx4CLAvQgLdhDm9GHMu7o1rBqr3x-w@mail.gmail.com>
Accept-Language: it-IT, en-US
Content-Language: it-IT
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.12.1.73]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNKsWRmVeSWpSXmKPExsXCxc2oqVvy+1moQdt5WYtFTyosrt59xeTA 5LFz1l12j8kbD7MFMEVx2yQllpQFZ6bn6dslcGdM+XCPsWCJTkXH861sDYzrVLsYOTgkBEwk 5qwu6WLkBDLFJC7cW8/WxcjFISSwlFHi3MT7TBDOdkaJ3UdvsYNUsQloSBy8dRnMFhFIlFjb +YAFxBYWsJTY+nwfG0TcSuLIk1VMMPau7y3MIMtYBFQklr2uAwnzCkRLzFj4kxli/lSgZT0f GEESnAKBEveevWEGsRkFZCUm7F4EFmcWEJd4Mf0EO8SlAhJL9pxnhrBFJV4+/scKYctJNM85 wgpRrydxY+oUNghbW2LZwtfMEIsFJU7OfMIygVF0FpKxs5C0zELSMgtJywJGllWMYsW56brF yYl5hnrJxXqleZlJ+Xo5+cmbGIGR0nlGwmwH46rzbocYBTgYlXh4GxKfhQqxJpYVV+YeYpTk YFIS5eX9BRTiS8pPqcxILM6ILyrNSS0+xCjBwawkwlv7HSjHm5JYWZValA+TkuZgURLnbWjp ChUSSE8sSc1OTS1ILYLJynBwKEnwBoMMFSxKTU+tSMvMKUFIM3FwggznkhIpTs1LSS1KLC3J iAclivhiYKoASfEA7QVr5y0uSMwFikK0nmJU5diy4MZaJiGWvPy8VClxXkmQIgGQoozSPLgV rxjFgT4V5q0HyfIAUyjchFdAw5mAhk93fQoyvCQRISXVwMjcKr074rXRNqGse3tWtibd//nO 13ytmvPMyoze+F9Hsvf2JBTO6wyTPz5rfdAX1Zxrx1j/V3BNu2guEPpn6YFpFW+uT3m7nP3E rtnTg4wvSjvnnP2VvlPNRNTD6R37uV0TLx26qOWuo+qtfHhfhd+Nfe/npiSvXjWzzqP34M8P ssfNMwK+dM1UYinOSDTUYi4qTgQAYYcNc14DAAA=
Archived-At: <http://mailarchive.ietf.org/arch/msg/dtn-users/xy4mzmQrkl1RdvaG6IY03nE0txs>
Subject: Re: [dtn-users] Ping Failed when use ad-hoc mode
X-BeenThere: dtn-users@irtf.org
X-Mailman-Version: 2.1.15
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: <https://mailarchive.ietf.org/arch/browse/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: Wed, 02 Sep 2015 13:37:02 -0000

Dear Ahmad,
        First, please do not flood the same request on all dtn related mailing list. I have received your message in 8 copies!
This said, it seem to me that you have a problem at the convergence layer. After having synchronized the clocks by means of NTP as suggested by Ivancic, substitute your ONDEMAND on node 1 with ALWAYSON (one word) and then temporarily remove (i.e. comment) the instructions "link" and "route" on node 2. Then restart your daemons on both nodes and check the logs before launching dtnping or any othe dtn application. Use the option "-t" in dtnd to clean the database (e.g. dtnd -d -o ./dtn.log -t).
The instruction alwayson tells the TCP CL to open a new TCP connection to the other node. In response a new link (link-0) and a new route to go back (via the brand new link-0) should be automatically added on node 2.
If you still have a message error on the logs this means that dtnping responsible for that.
Do you use DTN2.9 stable or DTN2 "bleeding edge"?
Yours,
   Carlo


________________________________________
Da: dtn-users [dtn-users-bounces@irtf.org] per conto di Ahmad Zainudin [ahmad.zainudin.milist@gmail.com]
Inviato: mercoledì 2 settembre 2015 4.52
A: dtn-users@irtf.org
Oggetto: Re: [dtn-users] Ping Failed when use ad-hoc mode

I use ad-hoc configure as follows ( /etc/network/interfaces)
auto wlan0
iface wlan0 inet static
    address 192.168.50.2
    netmask 255.255.255.0
    wireless-channel 1
    wireless-essid DTN-Network
    wireless-mode ad-hoc

On Wed, Sep 2, 2015 at 9:21 AM, Ahmad Zainudin <ahmad.zainudin.milist@gmail.com<mailto:ahmad.zainudin.milist@gmail.com>> wrote:
Dear all,
I am use DTN 2.9.0 and debian jessie operating system, I have install DTN2 and ping with another node (ip 192.168.50.1 and 192.168.50.2) use ad-hoc mode successful. Ping from 192.168.50.2 to 192.168.50.1
root@dtn-2:/home/dtn-2# ping 192.168.50.1
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data.
64 bytes from 192.168.50.1<http://192.168.50.1>: icmp_seq=1 ttl=64 time=3.71 ms
64 bytes from 192.168.50.1<http://192.168.50.1>: icmp_seq=2 ttl=64 time=3.52 msmatically
64 bytes from 192.168.50.1<http://192.168.50.1>: icmp_seq=3 ttl=64 time=20.6 ms
64 bytes from 192.168.50.1<http://192.168.50.1>: icmp_seq=4 ttl=64 time=2.57 ms
64 bytes from 192.168.50.1<http://192.168.50.1>: icmp_seq=5 ttl=64 time=1.49 ms
64 bytes from 192.168.50.1<http://192.168.50.1>: icmp_seq=6 ttl=64 time=18.2 ms

and then I use static routing with configure in dtn.conf

on pc 192.168.50.1
route set type static
route local_eid "dtn://dtn-1.dtn"
interface add tcp0 tcp
interface add udp0 udp
link add link1 192.168.50.2 ONDEMAND tcp
route add dtn://dtn-2.dtn/* link1

on pc 192.168.50.2
route set type static
route local_eid "dtn://dtn-2.dtn"
interface add tcp0 tcp
interface add udp0 udp
link add link1 192.168.50.1 ONDEMAND tcp
route add dtn://dtn-1.dtn/* link1

I use command dtnping
ping localhost success
root@dtn-2:/usr/local/src/dtn-2.9.0/apps/dtnping# dtnping localhost
source_eid [dtn://dtn-2.dtn/ping.2181]
dtn_register succeeded, regid 36
PING [dtn://dtn-2.dtn/ping] (expiration 30)...
20 bytes from [dtn://dtn-2.dtn/ping]: 'dtnping!' seqno=0, time=230 ms
20 bytes from [dtn://dtn-2.dtn/ping]: 'dtnping!' seqno=1, time=285 ms
20 bytes from [dtn://dtn-2.dtn/ping]: 'dtnping!' seqno=2, time=263 ms
20 bytes from [dtn://dtn-2.dtn/ping]: 'dtnping!' seqno=3, time=263 ms
20 bytes from [dtn://dtn-2.dtn/ping]: 'dtnping!' seqno=4, time=275 ms

But use command dtnping to another node failed

root@dtn-2:/usr/local/src/dtn-2.9.0/apps/dtnping# dtnping -c 6 dtn://dtn-1.dtn/ping
source_eid [dtn://dtn-2.dtn/ping.2188]
dtn_register succeeded, regid 37
PING [dtn://dtn-1.dtn/ping] (expiration 30)...

log in daemon
root@dtn-2:/usr/local/src/dtn-2.9.0/daemon# dtnd -c dtn.conf
[1441185215.847809 /dtnd notice] random seed is 847792
[1441185215.848060 /dtnd notice] DTN daemon starting up... (pid 2174)
[1441185215.998328 /S10 notice] Lines marked "S10" are log lines added to make parsing
[1441185215.998387 /S10 notice] the logs easier after extended tests. These were added for
[1441185215.998410 /S10 notice] the summer 2010 N4C summer trial and are mainly new lines
[1441185215.998442 /S10 notice] that allow tracing bundles across multiple hops.
[1441185215.998459 /S10 notice] To extract these do the following...
[1441185215.998477 /S10 notice]      grep "S10 info" <dtnd-log-files> | grep -v grep | awk '{print $4,$5}' | sort -n
[1441185215.999192 /dtn/bundle/daemon notice] loading bundles from data store
dtn-2 dtn% [1441185385.969955 /dtn/contact/manager error] ContactManager::new_opportunistic_link: failed to add new opportunistic link link-0
[1441185390.973518 /dtn/contact/manager error] ContactManager::new_opportunistic_link: failed to add new opportunistic link link-0
[1441185395.979608 /dtn/contact/manager error] ContactManager::new_opportunistic_link: failed to add new opportunistic link link-0
[1441185400.991478 /dtn/contact/manager error] ContactManager::new_opportunistic_link: failed to add new opportunistic link link-0
[1441185405.998484 /dtn/contact/manager error] ContactManager::new_opportunistic_link: failed to add new opportunistic link link-0
[1441185411.002293 /dtn/contact/manager error] ContactManager::new_opportunistic_link: failed to add new opportunistic link link-0

What is the happen? What is the configure to solved this problem?
Thanks,
Zai