Hi, If I want to change a bundle at an intermediate node which file (.cpp) that I have to see? I’m thinking that could be the BundleReceivedEvent.cpp file. The experiment that I’m evaluate is based on three nodes, I use dtninbox and dtnoutbox to share .txt files between two nodes passing by a third one. In the middle node I want to change the bundle to add information about this intermediate node to the file that I’m transmitting. At the destination node, when I see the .txt file that I received, I expect to obtain information about the path that my bundle did. This kind on manipulation is possible? How can I do that? Thank you a lot.
Best regards, Tiago Almeida
Hi Tiago,
maybe you can have a look at the tool `dtntracepath`. If I get you right, this does what you want.
Best regards, Stephan
Am Dienstag, den 04.11.2014, 11:20 +0000 schrieb Tiago Almeida:
Hi, If I want to change a bundle at an intermediate node which file (.cpp) that I have to see? I’m thinking that could be the BundleReceivedEvent.cpp file. The experiment that I’m evaluate is based on three nodes, I use dtninbox and dtnoutbox to share .txt files between two nodes passing by a third one. In the middle node I want to change the bundle to add information about this intermediate node to the file that I’m transmitting. At the destination node, when I see the .txt file that I received, I expect to obtain information about the path that my bundle did. This kind on manipulation is possible? How can I do that? Thank you a lot.
Best regards, Tiago Almeida
Hi Stephan,
Thank you for your answer!
The tool dtntracepath shows the path to a specific node, but we want to track specific bundles that contains real information and we want to know where the bundles went through and when that happened. We will do this by changing the file BundleReceivedEvent.cpp with some filtering. We did some tests and we think that this will solve our problem.
Best regards, Tiago Almeida
On 05-11-2014 07:58, Stephan Rottmann wrote:
Hi Tiago,
maybe you can have a look at the tool `dtntracepath`. If I get you right, this does what you want.
Best regards, Stephan
Am Dienstag, den 04.11.2014, 11:20 +0000 schrieb Tiago Almeida:
Hi, If I want to change a bundle at an intermediate node which file (.cpp) that I have to see? I’m thinking that could be the BundleReceivedEvent.cpp file. The experiment that I’m evaluate is based on three nodes, I use dtninbox and dtnoutbox to share .txt files between two nodes passing by a third one. In the middle node I want to change the bundle to add information about this intermediate node to the file that I’m transmitting. At the destination node, when I see the .txt file that I received, I expect to obtain information about the path that my bundle did. This kind on manipulation is possible? How can I do that? Thank you a lot.
Best regards, Tiago Almeida
Hello Tiago.
Actually, the dtntracepath is doing exactly what you want. The tools sends payload (any data you like) to an endpoint and attaches a TrackingBlock [1] to the bundle. Each daemon automatically adds an entry to the block containing its own endpoint identifier and the current time-stamp. A modification to the original source of the daemon is not necessary. The receiving application can then access the attached block of the bundle and list all passed peers. [2]
Kind regards, Johannes
[1] https://github.com/ibrdtn/ibrdtn/blob/master/ibrdtn/tools/src/dtntracepath.c...
[2] https://github.com/ibrdtn/ibrdtn/blob/master/ibrdtn/tools/src/dtntracepath.c...
Am 05.11.2014 19:25, schrieb Tiago Almeida:
Hi Stephan,
Thank you for your answer!
The tool dtntracepath shows the path to a specific node, but we want to track specific bundles that contains real information and we want to know where the bundles went through and when that happened. We will do this by changing the file BundleReceivedEvent.cpp with some filtering. We did some tests and we think that this will solve our problem.
Best regards, Tiago Almeida
participants (3)
-
Johannes Morgenroth
-
Stephan Rottmann
-
Tiago Almeida