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

Ahmad Zainudin <ahmad.zainudin.milist@gmail.com> Wed, 02 September 2015 02:21 UTC

Return-Path: <ahmad.zainudin.milist@gmail.com>
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 7502B1B2DE4 for <dtn-users@ietfa.amsl.com>; Tue, 1 Sep 2015 19:21:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.701
X-Spam-Level:
X-Spam-Status: No, score=0.701 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
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 x-0cEUPMrKgp for <dtn-users@ietfa.amsl.com>; Tue, 1 Sep 2015 19:21:43 -0700 (PDT)
Received: from mail-lb0-x235.google.com (mail-lb0-x235.google.com [IPv6:2a00:1450:4010:c04::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2D2F31A87CA for <dtn-users@irtf.org>; Tue, 1 Sep 2015 19:21:42 -0700 (PDT)
Received: by lbcao8 with SMTP id ao8so9902781lbc.3 for <dtn-users@irtf.org>; Tue, 01 Sep 2015 19:21:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2OEes50fRgjcM/NJNxFNI2jpbB5QPXv5fIsi/xQNPfY=; b=Cbs9S4e6B7+PsyRMnnF4JF2E3Yg97NwuGMpASHfLdCMcQX8okq/8v9QlDYJgm/5b+P z32K4iGooxONSzgxlg3sZQbD4ExTUxlgkr0QxW8i9ILsHeJMY5VBC63+IuC6RRw2tf86 bKDC8QcM/bBDpQVyC8rX+PuvPl5VhD/q+HxuMwJwm/G3IM2NuMBsl45kVyNtUxblRREY Y84L576JkH031ZwX8+ceM7YSP/C/0Ll/hL0uc1O0F3sI76wUE4ocnDf6gK+zAA/6f8T/ uvavuXUEsS7as40UeKJ/NvAN0UKQ4G2PQWcmwYB8qc9nYUGOEcvFcuEOQ8vXTWeG9QHN //mg==
MIME-Version: 1.0
X-Received: by 10.152.207.35 with SMTP id lt3mr630372lac.2.1441160500116; Tue, 01 Sep 2015 19:21:40 -0700 (PDT)
Received: by 10.25.21.158 with HTTP; Tue, 1 Sep 2015 19:21:40 -0700 (PDT)
Date: Wed, 02 Sep 2015 09:21:40 +0700
Message-ID: <CAGO8Fv4oPvUiu_4pWMW8D7WuSLZXcH7+A45=c9PzYcKs2r4=4Q@mail.gmail.com>
From: Ahmad Zainudin <ahmad.zainudin.milist@gmail.com>
To: dtn-users@irtf.org
Content-Type: multipart/alternative; boundary="001a11347892ac8501051eba53d4"
Archived-At: <http://mailarchive.ietf.org/arch/msg/dtn-users/SPCqJY9SZ6cBlWc3gxBd8DxrWXY>
Subject: [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 02:21:45 -0000

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: icmp_seq=1 ttl=64 time=3.71 ms
64 bytes from 192.168.50.1: icmp_seq=2 ttl=64 time=3.52 ms
64 bytes from 192.168.50.1: icmp_seq=3 ttl=64 time=20.6 ms
64 bytes from 192.168.50.1: icmp_seq=4 ttl=64 time=2.57 ms
64 bytes from 192.168.50.1: icmp_seq=5 ttl=64 time=1.49 ms
64 bytes from 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