LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-13-2020, 11:31 PM   #1
NOELLY
LQ Newbie
 
Registered: Jan 2020
Posts: 5

Rep: Reputation: Disabled
Unhappy Ref: DTN Code f or ns-2.35 pdf available online. i failed to implement paragraph two


refer
https://www.netlab.tkk.fi/tutkimus/dtn/ns/DTN_ns235.pdf

im trying to emplement dtn routing protocols in ns-2.35 as the paper detailed. I have made necessary changes as instructed but I don't know how to make the following suggested changes

"The DTN code may work with earlier ns-2 versions, too. However, special attention should be paid
when modifying packet.h. Moreover, the example script has to be modified: use the default (CMU)
IEEE 802.11 model
instead of the dei80211mr model [2]."

I GET THE FOLLOWING ERROR DURING FIRST SIMULATION...

HP@DESKTOP-Q6V3RGT /cygdrive/c/cygwin/home/ns2dtn
$ dynamic loading is not currently available on this system
while executing
"load ../ns-allinone-2.35/dei80211mr-1.1.4/src/.libs/libdei80211mr.so"
(file "bundle-test-large-scen.tcl" line 9)


THANKS IN ADVANCE
N756500@GMAIL.COM
 
Old 01-16-2020, 09:57 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
Welcome to LQ.

DTN pdf etc.: My links from 2013 and 2015 are :
. https://wiki.aalto.fi/download/attac...=1351509787000
. http://www.netlab.tkk.fi/tutkimus/dtn/ns/
. http://www.netlab.tkk.fi/tutkimus/dtn/ns/DTN_ns235.pdf
. http://www.netlab.tkk.fi/tutkimus/dtn/ns/ns2dtn.tar.gz
. http://www.netlab.tkk.fi/tutkimus/dt...ampaign.tar.gz

The ns-2.35 patch is `dtn_ns235.patch´
https://drive.google.com/file/d/0B7S...ew?usp=sharing

My setup :
Code:
ns-allinone-2.35/
├── bin/
├── bundle-test-large-scen.tcl
├── create-traffic-file.tcl
├── dei80211mr-1.1.4/
├── dtn_ns235.patch
├── lib/
├── Run1/
├── scen_n40_pt2_ms20_t5000_x2000_y2000
├── sgb/
├── simulate_dtn.sh
└── trafficgen.tcl
5 directories, 8 files
Build example (Ubuntu example. (I don't use Windows©. No Cygwin))
Code:
$ tar xvf ns-allinone-2.35_gcc5.tar.gz    ## 2014 .. 2017 update
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ patch -p0 < dtn_ns235.patch
$ export CC=gcc-4.8 CXX=g++-4.8 && ./install
$ cd ns-2.35/
$ sudo make install
Simulation
Code:
$ cd ns-allinone-2.35/   ## Conditions : The above "setup"
$ ./simulate_dtn.sh &
       ## Simulation time, example: 40 minutes→ Intel i7-920
DTN info https://www.linuxquestions.org/questions/tags/dtn/
Simulation info https://www.linuxquestions.org/quest...-4175550305/#3

P.S.: Today's simulation "$ ./simulate_dtn.sh", with Intel i3-2120 :
The result in "Run1/" is
{bundle_delays.tr 23.7kB, dtn.txt 194.1kB, qtrace.tr 8.9MB, receipt_delays.tr 21.9kB}.

Plot examples
$ xgraph bundle_delays.tr -geometry 2000x1600 &
$ xgraph receipt_delays.tr -geometry 2000x1600 &

-

Last edited by knudfl; 01-16-2020 at 10:25 AM.
 
Old 03-05-2020, 04:43 AM   #3
NOELLY
LQ Newbie
 
Registered: Jan 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
(thanks a lot ) after applying all the procedures you suggested here i got stacked

Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

DTN pdf etc.: My links from 2013 and 2015 are :
. https://wiki.aalto.fi/download/attac...=1351509787000
. http://www.netlab.tkk.fi/tutkimus/dtn/ns/
. http://www.netlab.tkk.fi/tutkimus/dtn/ns/DTN_ns235.pdf
. http://www.netlab.tkk.fi/tutkimus/dtn/ns/ns2dtn.tar.gz
. http://www.netlab.tkk.fi/tutkimus/dt...ampaign.tar.gz

The ns-2.35 patch is `dtn_ns235.patch´
https://drive.google.com/file/d/0B7S...ew?usp=sharing

My setup :
Code:
ns-allinone-2.35/
├── bin/
├── bundle-test-large-scen.tcl
├── create-traffic-file.tcl
├── dei80211mr-1.1.4/
├── dtn_ns235.patch
├── lib/
├── Run1/
├── scen_n40_pt2_ms20_t5000_x2000_y2000
├── sgb/
├── simulate_dtn.sh
└── trafficgen.tcl
5 directories, 8 files
Build example (Ubuntu example. (I don't use Windows©. No Cygwin))
Code:
$ tar xvf ns-allinone-2.35_gcc5.tar.gz    ## 2014 .. 2017 update
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ patch -p0 < dtn_ns235.patch
$ export CC=gcc-4.8 CXX=g++-4.8 && ./install
$ cd ns-2.35/
$ sudo make install
Simulation
Code:
$ cd ns-allinone-2.35/   ## Conditions : The above "setup"
$ ./simulate_dtn.sh &
       ## Simulation time, example: 40 minutes→ Intel i7-920
DTN info https://www.linuxquestions.org/questions/tags/dtn/
Simulation info https://www.linuxquestions.org/quest...-4175550305/#3

P.S.: Today's simulation "$ ./simulate_dtn.sh", with Intel i3-2120 :
The result in "Run1/" is
{bundle_delays.tr 23.7kB, dtn.txt 194.1kB, qtrace.tr 8.9MB, receipt_delays.tr 21.9kB}.

Plot examples
$ xgraph bundle_delays.tr -geometry 2000x1600 &
$ xgraph receipt_delays.tr -geometry 2000x1600 &

-

here is my terminal commands, after following your all procedures


mwangoboy@mwangoboy-virtual-machine:~/Documents/ns-allinone-2.35/DTN_C$ nohup ./simulate_aodv.sh &
[2] 29150
[1] Done nohup ./simulate_dtn.sh
mwangoboy@mwangoboy-virtual-machine:~/Documents/ns-allinone-2.35/DTN_C$ nohup: ignoring input and appending output to 'nohup.out'
nohup: failed to run command './simulate_aodv.sh': No such file or directory
/simulate_dtn.sh &
[3] 29230
[2] Exit 127 nohup ./simulate_aodv.sh
mwangoboy@mwangoboy-virtual-machine:~/Documents/ns-allinone-2.35/DTN_C$ nohup: ignoring input and appending output to 'nohup.out'

[3]+ Done nohup ./simulate_dtn.sh
mwangoboy@mwangoboy-virtual-machine:~/Documents/ns-allinone-2.35/DTN_C$





here seems to be a problem now

couldn't load file "/home/jlakkako/ns-allinone-2.35/dei80211mr-1.1.4/src/.libs/libdei80211mr.so": /home/jlakkako/ns-allinone-2.35/dei80211mr-1.1.4/src/.libs/libdei80211mr.so: cannot open shared object file: No such file or directory
while executing
"load /home/jlakkako/ns-allinone-2.35/dei80211mr-1.1.4/src/.libs/libdei80211mr.so"
(file "bundle-test-large-scen.tcl" line 10)
 
Old 03-06-2020, 10:12 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 : Please do not quote entire posts. A "one word reference" will do.
Quote:
2.35/DTN_C$ nohup ./simulate_aodv.sh &
simulate_aodv.sh is not used.

My 64bits setup in ns-allinone-2.35/ :
Code:
[ns-allinone-2.35]$ tree -L 1
.
├── bin/
├── bundle-test-large-scen.tcl
├── create-traffic-file.tcl
├── dei80211mr-1.1.4/
├── lib/
├── ns235-dtn-64
├── Run1/
├── scen_n40_pt2_ms20_t5000_x2000_y2000
├── sgb/
└── simulate_dtn.sh
You can edit `simulate_dtn.sh´ to your requrements / to your file names.
My simulate_dtn.sh is attached as "simulate_dtn.sh.txt".

Your missing "/home/jlakkako/ns-allinone-2.35/dei80211mr-1.1.4/src/.libs/libdei80211mr.so" : dei80211mr* must be built with no errors.
-
Attached Files
File Type: txt simulate_dtn.sh.txt (656 Bytes, 22 views)
 
Old 03-17-2020, 04:39 AM   #5
NOELLY
LQ Newbie
 
Registered: Jan 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #3 : simulate_dtn.sh,

I have followed your setup, i don't know why i still have this error.
-
please if you have this dll file can you send it to me. see this error plz..

mwangoboy@mwangoboy-virtual-machine:~/Documents/ns-allinone-2.35$ ./simulate_dtn.sh &
[1] 82931
mwangoboy@mwangoboy-virtual-machine:~/Documents/ns-allinone-2.35$ couldn't load file "../ns-allinone-2.35/dei80211mr-1.1.4/src/.libs/libdei80211mr.so": ../ns-allinone-2.35/dei80211mr-1.1.4/src/.libs/libdei80211mr.so: file too short
while executing
"load ../ns-allinone-2.35/dei80211mr-1.1.4/src/.libs/libdei80211mr.so"
(file "bundle-test-large-scen.tcl" line 10)



thanks very much
n756500@gmail.com
mwangosi.emmanuel@yahoo.com
 
Old 03-17-2020, 08:48 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.
Quote:
... if you have this dll
dll's are Windows© only. Post #1 says Cygwin. Post #5 : virtual-machine.
... Can you run ns2 files in e.g. Ubuntu 18.04.4 ?

Conditions for ns2 : A "Linux OS" installed to a hard disk partition.
I.e. no guaranties that you can build ns2 with Cygwin or a VirtualMachine.
Mostly poor build results with wmWare, VirtualBox the last three years.

I can build ns-2.35 + DTN as an "ns2 application.deb".
Like `dtn-ns2_2.35-1.ubuntu16_amd64.deb´ :
These apps will usually work OK in a Virtual Machine.

All current ns2 apps https://drive.google.com/drive/folde...FE?usp=sharing

-
 
Old 03-21-2020, 01:49 PM   #7
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.

The package `dtn-ns2_2.35-1ubuntu16_amd64.deb´ (2.4MB) was created (with Ubuntu 16.04) : Provides /usr/local/bin/ns235-DTN.
And tested OK with Ubuntu 18.04.4 by using the setup "DTN-setup-files-16.tar.gz".
DTN-setup-files-16.tar.gz can be unpacked in any directory in /home/name/.

Install the downloaded dtn-ns2_2.35-1ubuntu16_amd64.deb :
Code:
sudo gdebi Downloads/dtn-ns2_2.35-1ubuntu16_amd64.deb
Run the simulation :
Code:
cd DTN-setup-files/ns-allinone-2.35/ && ./DTN__simulate_dtn.sh
Link the two packages https://drive.google.com/drive/folde...IK?usp=sharing

-

Last edited by knudfl; 03-21-2020 at 01:54 PM.
 
  


Reply

Tags
dtn, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Query Regarding DTN patch in ns2 manjumay93@gmail.com Linux - Software 14 03-22-2017 02:03 PM
Simulate dtn for satellite GEO ns2 Ouafa Linux - Wireless Networking 4 11-08-2016 01:48 PM
Epidemic Routing module for DTN embedded in ns-allinone birdbn@yahoo.com Linux - Software 0 12-08-2011 12:24 AM
Where can I download the shell commands ref pdf Egyptian_Isis Linux - Newbie 1 11-06-2003 04:31 AM

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

All times are GMT -5. The time now is 02:17 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