Extract files to the application layer
Hi,
I am trying to send a file of 1MB between two hosts (host1 and host2) I have installed tar package in OpenWRT and I do the following:
1) tar -cf -file | dtnsend dtn://host2/inboxReceiver @ host1
Sorry for the previous message. Hi,
I am trying to send a file of 1MB between two hosts (host1 and host2) I have installed tar package in OpenWRT and I do the following:
1) tar -cf -file | dtnsend dtn://host2/inboxReceiver @ host1 2) dtninbox -w /overlay/inbox_tmp inboxReceiver /inboxFolder/ @ host2
I sent the file, it arrives at the host2, but I cannot see any notification in the application layer that it is received. I can identify that sth is received when I see the purgeEvent in the daemon that is running. At this moment when I opened the /inboxFolder, the file was there. a)Is it expected not to see any notification in application layer?
b) And one more question: If I dont use the tar command I am unable to see packages in the application layer, although the respective bundles are lost when I ran the 2nd command. Is that the case in the design of ibr-dtn or sth is not working properly for me?
Best, Theodoros
On Fri, Feb 21, 2014 at 11:43 AM, Theodoros Bourchas bourchast@gmail.comwrote:
Hi,
I am trying to send a file of 1MB between two hosts (host1 and host2) I have installed tar package in OpenWRT and I do the following:
- tar -cf -file | dtnsend dtn://host2/inboxReceiver @ host1
Hi,
not sure, I understand, but it seems everything works as intended. dtninbox _IS_ the application (layer), i.e. it is a DTN application, and not part of the DTN protocol/stack. If you want a notification (like printing something to the console) you need to modify the dtninbox source.
As dtninbox and dtnoutbox use tar archives, this explains why it does not work when you send other files to dtninbox: The daemon will deliver it to the dtninbox endpoint (as it does not know what kind of payload an application expects). So according to the daemon it delivered the bundles. As dtninbox expects a tar archive it will probably notice the payload isn't one, and ignore it. This is similar to sending malformed HTTP request or random data to a webserver: TCP doesn't care, but the webserver will ignore it/throw an error.
MfG
Sebastian
Am 21.02.2014 um 11:49 schrieb Theodoros Bourchas bourchast@gmail.com:
Sorry for the previous message. Hi,
I am trying to send a file of 1MB between two hosts (host1 and host2) I have installed tar package in OpenWRT and I do the following:
- tar -cf -file | dtnsend dtn://host2/inboxReceiver @ host1
- dtninbox -w /overlay/inbox_tmp inboxReceiver /inboxFolder/ @ host2
I sent the file, it arrives at the host2, but I cannot see any notification in the application layer that it is received. I can identify that sth is received when I see the purgeEvent in the daemon that is running. At this moment when I opened the /inboxFolder, the file was there. a)Is it expected not to see any notification in application layer?
b) And one more question: If I dont use the tar command I am unable to see packages in the application layer, although the respective bundles are lost when I ran the 2nd command. Is that the case in the design of ibr-dtn or sth is not working properly for me?
Best, Theodoros
On Fri, Feb 21, 2014 at 11:43 AM, Theodoros Bourchas bourchast@gmail.com wrote: Hi,
I am trying to send a file of 1MB between two hosts (host1 and host2) I have installed tar package in OpenWRT and I do the following:
- tar -cf -file | dtnsend dtn://host2/inboxReceiver @ host1
-- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://mail.ibr.cs.tu-bs.de/listinfo/ibr-dtn.
participants (2)
-
Sebastian Schildt
-
Theodoros Bourchas