LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Query Regarding DTN patch in ns2 (https://www.linuxquestions.org/questions/linux-software-2/query-regarding-dtn-patch-in-ns2-4175558793/)

manjumay93@gmail.com 11-13-2015 10:59 AM

Query Regarding DTN patch in ns2
 
I have installed ns2.35 and am trying to patch dtn to ns2. I have done all the changes said in the followig document. http://www.netlab.tkk.fi/tutkimus/dtn/ns/DTN_ns235.pdf
While simulating a sample script am getting an error stating " invalid command name agent/bundle. Could anyone help me resolving this error?

knudfl 11-13-2015 11:22 AM

Same as your other thread, 09 Aug 2015 ...
http://www.linuxquestions.org/questi...ng-4175550305/

Same procedure, I just made <everything DTN> up to a patch, dtn_ns235.patch.gz, for easier use.
But no difference at all from the original files.

So what's new ? ?


-

manjumay93@gmail.com 11-15-2015 06:16 AM

Yes Mr.Knufdal.I followed the same steps which you suggested. But at the end while simulating the sample DTN script the file throws an error. And also how can i ensure the DTNAgent is patched to ns2? After patching DTN to NS2 will behavior of the nodes and network vary? If yes, then how ?

And also please could you say me how to patch DTN to NS2 and work with DTN networks?

Thanks in advance.

knudfl 11-15-2015 07:46 AM

Re #3 : No errors here : A 32bits OS ( PCLinuxOS2015 - i686 ).
May be you are using a 64bits OS ? Your OS is unknown, please specify.

$ bash simulate_dtn.sh
INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!

Time ~40 minutes, Intel Core i7-920 Processor.
The files bundle_delays.tr 23.7kB, dtn.txt 194kB, qtrace.tr 8.9MB, receipt_delays.tr 21.9kB, trafficgen.tcl 63.2kB, are created.
( 3 month`s of updates, the qtrace.tr is bigger now. 'Aug 09' : 6.8MB.)

------------------------
Quote:

the sample DTN script the file throws an error
Which error ?


Quote:

how can I ensure the DTNAgent is patched to ns2 ?
Well, if any doubts, you can read the files.
And, if no DTN in the executable 'ns', the simulation would work different, I guess.
( You would see "invalid command name Agent/Bundle" ).


Quote:

And also please could you say me how to patch DTN to NS2
cd ns-allinone-2.35/ && zcat dtn_ns235.patch.gz | patch -p0


"HOWTO work with DTN networks" :
You can write your own version of simulate_dtn.sh .
And edit the connected scripts to your requirements.
------------------

About http://www.netlab.tkk.fi/tutkimus/dtn/ns/DTN_ns235.pdf
The author didn't know how to create a patch, therefore the complicated procedure.
A patch shows the changes in the files, and is thus the preferred documentation.


-

manjumay93@gmail.com 11-15-2015 09:07 AM

invalid command name "Agent/Bundle"
while executing
"Agent/Bundle set helloInterval_ 100 "
(file "bundle-test-large-scen.tcl" line 60)
This is the error am getting while executing the samplefile - ./simulate_dtn.sh
.

OS- Ubuntu
and yes i use 64 bit OS

knudfl 11-15-2015 09:24 AM

Re #5.

Unknown Ubuntu version : Please specify.

Finding 'Ubuntu version' : $ cat /etc/issue

manjumay93@gmail.com 11-15-2015 09:41 AM

Ubuntu- 10.04
NS2.35

knudfl 11-15-2015 02:58 PM

OK, the old (unsupported) Ubuntu 10.04 - 64.
This command will show version and update level : $ cat /etc/issue
** Please read ...
. http://www.linuxquestions.org/linux/...Ask_a_Question
. http://www.catb.org/~esr/faqs/smart-questions.html
... It is very important to specify the OS for every ns2 question.
Like "Ubuntu 10.04.4 - 64" ,,, which is used in the following :

tar xvf ns-allinone-2.35.tar.gz ( old version for old OS )
tar xvf dtn_ns235-files-1.tar.gz ( outside ns-allinone-2.35/ )
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
./install
cd ns-2.35/
sudo make install

No errors with the simulation. ( Time = 150 minutes, Intel Core 2 4300 ).


Quote:

HOWTO work with DTN networks
? Have you forgotten the other simulation scripts, ns2dtn_campaign.tar.gz ?


-

manjumay93@gmail.com 11-15-2015 11:24 PM

Thank you Mr.Knufdal.
As said in the following document "http://www.netlab.tkk.fi/tutkimus/dtn/ns/DTN_ns235.pdf" i have made changes till Chapter B. While executing the chapter C i.e while launching the shell script ./simulate_dtn .sh & am getting an error stating,

invalid command name "Agent/Bundle"
while executing
"Agent/Bundle set helloInterval_ 100 "
(file "bundle-test-large-scen.tcl" line 60).

I thought after launching this shell script only the simulation campaign has to be done. As am getting error in launching Shell command am half a way struck.
Thanks in advance.

knudfl 11-16-2015 06:09 AM

Re #9.

First :
You can have as many `ns-allinone-2*' as you want, installed at the same time.
But : Do never add any *PATH text to .bashrc. Not required. And may disturb.
This will do : $ sudo make install
I.e. the executable ns is hard coded to know the path to it`s libraries.

Your build has failed. Or you are using a wrong executable 'ns'.
Please do : $ cd ns-2.35/ && sudo make install
If it still isn't working, what is stopping you from doing another build according to post #8 ?
"dtn_ns235-files-1.tar.gz" is the original files ordered to prevent any errors.

No reason to keep looking at a build result that failed.


-

manjumay93@gmail.com 11-25-2015 09:26 AM

Thank you Mr.Knufdal.
In reference to the post #8 when i try to install the file you shared via drive am getting an error stating " No install file detected" even after moving to the appropriate locations.
I couldnt find out the exact reason why DTN is not getting patched up with my NS2.35 :(

Thanks in Advance.

knudfl 11-25-2015 10:01 AM

Re #11.

tar xvf dtn_ns235-files-1.tar.gz ,, in the folder where ns-allinone-2.35/ is present.

Means you will need a copy of dtn_ns235-files-1.tar.gz in the folder with ns-allinone-2.35/.

Or use the full path : tar xvf /home/[name]/Downloads/dtn_ns235-files-1.tar.gz


-

manjumay93@gmail.com 12-04-2015 07:47 AM

Thank you Mr.Knufdal :) Patched DTN to NS2.35.

pratikwagh 03-04-2017 04:45 AM

I am still getting the error. Please help me in removing the error

knudfl 03-22-2017 02:03 PM

Re #14, @pratikwagh : Welcome to LQ.

? Are you sure you followed the procedure in post #8 ?

.... And : Which error is it about ?


All times are GMT -5. The time now is 06:59 PM.