Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
Last edited by manjumay93@gmail.com; 11-15-2015 at 08:06 AM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
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
Last edited by manjumay93@gmail.com; 11-15-2015 at 09:08 AM.
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 ?
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.