LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-13-2015, 10:59 AM   #1
manjumay93@gmail.com
LQ Newbie
 
Registered: Aug 2015
Posts: 10

Rep: Reputation: Disabled
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?
 
Old 11-13-2015, 11:22 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 ? ?


-
 
Old 11-15-2015, 06:16 AM   #3
manjumay93@gmail.com
LQ Newbie
 
Registered: Aug 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-15-2015, 07:46 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.


-

Last edited by knudfl; 11-15-2015 at 08:00 AM.
 
Old 11-15-2015, 09:07 AM   #5
manjumay93@gmail.com
LQ Newbie
 
Registered: Aug 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Unhappy

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.
 
Old 11-15-2015, 09:24 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #5.

Unknown Ubuntu version : Please specify.

Finding 'Ubuntu version' : $ cat /etc/issue
 
Old 11-15-2015, 09:41 AM   #7
manjumay93@gmail.com
LQ Newbie
 
Registered: Aug 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Ubuntu- 10.04
NS2.35
 
Old 11-15-2015, 02:58 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 ?


-

Last edited by knudfl; 11-15-2015 at 08:00 PM.
 
Old 11-15-2015, 11:24 PM   #9
manjumay93@gmail.com
LQ Newbie
 
Registered: Aug 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Unhappy

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.
 
Old 11-16-2015, 06:09 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.


-
 
Old 11-25-2015, 09:26 AM   #11
manjumay93@gmail.com
LQ Newbie
 
Registered: Aug 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-25-2015, 10:01 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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


-
 
Old 12-04-2015, 07:47 AM   #13
manjumay93@gmail.com
LQ Newbie
 
Registered: Aug 2015
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you Mr.Knufdal Patched DTN to NS2.35.
 
Old 03-04-2017, 04:45 AM   #14
pratikwagh
LQ Newbie
 
Registered: Mar 2017
Posts: 1

Rep: Reputation: Disabled
Unhappy

I am still getting the error. Please help me in removing the error
 
Old 03-22-2017, 02:03 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #14, @pratikwagh : Welcome to LQ.

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

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


Reply

Tags
dtn, ns2, ns2-c++-tcl



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns2.31 and CRCN patch buptmuye Linux - Wireless Networking 27 01-06-2016 06:27 PM
[SOLVED] how to patch ns2.31_fhmip.patch.gz pon Linux - Newbie 5 04-10-2015 05:34 AM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
Query regarding LEACH in ns2.34 pgstudent2011 Linux - General 4 04-27-2013 09:22 AM
Epidemic Routing module for DTN embedded in ns-allinone birdbn@yahoo.com Linux - Software 0 12-08-2011 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration