Hi,
I'm trying to send bundles from one node to multiple receivers.
I noticed the -g and --group options in dtnrecv and dtnsend respectively but I can't seem to find the proper way to use these options.
How should I use those options? I tried using them the same way I use the --name option in dtnrecv but no luck so far...
Any pointers would be appreciated.
Regards, Jawad
Hello,
After tinkering a bit with dtnsend and dtnrecv, I noticed the following :
- dtnsend <eid> <file> -g <group> , sends bundles to all nodes except the one with <eid>
For example, if I have 4 nodes : dtn://n1, dtn://n2, dtn://n3, dtn://n4, using dtnsend dtn://n4 <file> -g <group> , from dtn://n1, I see bundles going from dtn://n1 to dtn://n2 and dtn://n3 but not to dtn://n4
My problem is how to retrieve those bundles from dtnrecv?
I tried using dtnrecv --group <group> --file <file> and even adding a name with --name <name> but I'm not seeing any bundles even though I see them reaching the daemon.
I should probably mention that I am using the epidemic router.
Regard, Jawad
2014/1/14 Jawad Seddar jawad.seddar@gmail.com
Hi,
I'm trying to send bundles from one node to multiple receivers.
I noticed the -g and --group options in dtnrecv and dtnsend respectively but I can't seem to find the proper way to use these options.
How should I use those options? I tried using them the same way I use the --name option in dtnrecv but no luck so far...
Any pointers would be appreciated.
Regards, Jawad
Hi,
ok, in DTN groups can be a bit confusing, you have mixed up things a little.
So for SINGLE(ton) endpoints everything works as as you expect: You use the name parameter on dtnsend and recv, and do not touch any of the group parameters. When using dtn:// EIDs the _convention_ is, that dtn://somenode/myapp consists of a part describing the node itself ("somenode") and an application part ("myapp"), which is what the --name parameter sets.
For GROUPS it is a bit differently: According to Bundle Protocol standards an EID (that is, the complete URI), can describe a group. In this case there is no "node" part, so with the ibr-dtn tools you would do for example
echo "Hi there" | dtnsend -g dtn://mygroup/whatever
Note, that there is no --name parameter or anything. You are adressing the group "dtn://mygroup/whatever"
So, to receive on all nodes in the group you can use
dtnrecv --group dtn://mygroup/whatever
Also no "--name" here, but the _whole_ group EID.
The node names (n1,n2,n3), are not relevant in this case, and habe no relation with the groupname.
Hope, this clears things up a bit
Sebastian
Am 15.01.2014 um 10:15 schrieb Jawad Seddar jawad.seddar@gmail.com:
Hello,
After tinkering a bit with dtnsend and dtnrecv, I noticed the following :
- dtnsend <eid> <file> -g <group> , sends bundles to all nodes except the one with <eid>
For example, if I have 4 nodes : dtn://n1, dtn://n2, dtn://n3, dtn://n4, using dtnsend dtn://n4 <file> -g <group> , from dtn://n1, I see bundles going from dtn://n1 to dtn://n2 and dtn://n3 but not to dtn://n4
My problem is how to retrieve those bundles from dtnrecv?
I tried using dtnrecv --group <group> --file <file> and even adding a name with --name <name> but I'm not seeing any bundles even though I see them reaching the daemon.
I should probably mention that I am using the epidemic router.
Regard, Jawad
2014/1/14 Jawad Seddar jawad.seddar@gmail.com Hi,
I'm trying to send bundles from one node to multiple receivers.
I noticed the -g and --group options in dtnrecv and dtnsend respectively but I can't seem to find the proper way to use these options.
How should I use those options? I tried using them the same way I use the --name option in dtnrecv but no luck so far...
Any pointers would be appreciated.
Regards, Jawad
-- !! 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://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
Hi Sebastian,
Thank you for the clarifications, I did indeed mix up things between singleton and groups.
Regards, Jawad
2014/1/15 Sebastian Schildt schildt@ibr.cs.tu-bs.de
Hi,
ok, in DTN groups can be a bit confusing, you have mixed up things a little.
So for SINGLE(ton) endpoints everything works as as you expect: You use the name parameter on dtnsend and recv, and do not touch any of the group parameters. When using dtn:// EIDs the _convention_ is, that dtn://somenode/myapp consists of a part describing the node itself ("somenode") and an application part ("myapp"), which is what the --name parameter sets.
For GROUPS it is a bit differently: According to Bundle Protocol standards an EID (that is, the complete URI), can describe a group. In this case there is no "node" part, so with the ibr-dtn tools you would do for example
echo "Hi there" | dtnsend -g dtn://mygroup/whatever
Note, that there is no --name parameter or anything. You are adressing the group "dtn://mygroup/whatever"
So, to receive on all nodes in the group you can use
dtnrecv --group dtn://mygroup/whatever
Also no "--name" here, but the _whole_ group EID.
The node names (n1,n2,n3), are not relevant in this case, and habe no relation with the groupname.
Hope, this clears things up a bit
Sebastian
Am 15.01.2014 um 10:15 schrieb Jawad Seddar jawad.seddar@gmail.com:
Hello,
After tinkering a bit with dtnsend and dtnrecv, I noticed the following :
- dtnsend <eid> <file> -g <group> , sends bundles to all nodes except
the one with <eid>
For example, if I have 4 nodes : dtn://n1, dtn://n2, dtn://n3, dtn://n4,
using dtnsend dtn://n4 <file> -g <group> , from dtn://n1, I see bundles going from dtn://n1 to dtn://n2 and dtn://n3 but not to dtn://n4
My problem is how to retrieve those bundles from dtnrecv?
I tried using dtnrecv --group <group> --file <file> and even adding a
name with --name <name> but I'm not seeing any bundles even though I see them reaching the daemon.
I should probably mention that I am using the epidemic router.
Regard, Jawad
2014/1/14 Jawad Seddar jawad.seddar@gmail.com Hi,
I'm trying to send bundles from one node to multiple receivers.
I noticed the -g and --group options in dtnrecv and dtnsend respectively
but I can't seem to find the proper way to use these options.
How should I use those options? I tried using them the same way I use the --name option in dtnrecv but
no luck so far...
Any pointers would be appreciated.
Regards, Jawad
-- !! 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://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
-- !! 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://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
participants (2)
-
Jawad Seddar
-
Sebastian Schildt