LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ref: DTN Code f or ns-2.35 pdf available online. i failed to implement paragraph two (https://www.linuxquestions.org/questions/linux-software-2/ref-dtn-code-f-or-ns-2-35-pdf-available-online-i-failed-to-implement-paragraph-two-4175667670/)

NOELLY 01-13-2020 11:31 PM

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

knudfl 01-16-2020 09:57 AM

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 &

-

NOELLY 03-05-2020 04:43 AM

(thanks a lot ) after applying all the procedures you suggested here i got stacked
 
Quote:

Originally Posted by knudfl (Post 6079044)
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)

knudfl 03-06-2020 10:12 AM

1 Attachment(s)
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.
-

NOELLY 03-17-2020 04:39 AM

Quote:

Originally Posted by knudfl (Post 6097811)
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

knudfl 03-17-2020 08:48 AM

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

-

knudfl 03-21-2020 01:49 PM

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

-


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