OLSR OLSR-ETX OLSR-MD OLSR-ML Performance

44 views
Skip to first unread message

Hameurlaine Hicham

unread,
Sep 14, 2023, 3:14:20 PM9/14/23
to Network Simulator 2 (NS2)
Hi all, please i want to get pdr of simulation of OLSR OLSR-ETX OLSR-MD OLSR-ML with different mobility pattern generated by bonnmotion as RWP RD GaussMarkov..., 
I have generated the pattern, I just want a help to simulate olsr with these pattern

knudfl

unread,
Sep 14, 2023, 6:03:15 PM9/14/23
to Network Simulator 2 (NS2)
Well, the easy way is to copy the scripts-OLSR OLSR-ETX OLSR-MD OLSR-ML to new names, and add like
set opt(sc)     rwp11.ns_movements    ;# node movement file
..... which can be used as is, when node_(0) is included ...... line 121 in the etx ex
for {set i 0} {$i < $opt(nn)} {incr i} {
and add e.g.
# positions
$node_(0) set X_ 100.0
$node_(0) set Y_ 140.0
$node_(0) set Z_ 15.0
........  see the example  11-script-olsr-etx-rwp11.tcl

$ ns235-olsr-64 11-script-olsr-etx-rwp11.tcl > 11-rwp.txt

Hameurlaine Hicham

unread,
Sep 15, 2023, 5:20:00 AM9/15/23
to Network Simulator 2 (NS2)
`@knudfl i simulate what did you give, i get this error

ubuntu@ubuntu2004:~/Desktop/TEST$ ns235-olsr 11-script-olsr-etx-rwp11.tcl
application-specific initialization failed: Can't find a usable init.tcl in the following directories:
    /home/ubuntu/Desktop/TEST/ns-allinone-2.35/lib/tcl8.5 /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 /usr/local/library /usr/library /usr/tcl8.5.10/library /tcl8.5.10/library

knudfl

unread,
Sep 15, 2023, 5:53:14 AM9/15/23
to Network Simulator 2 (NS2)
The executable "ns235-olsr" will look first in the creation location for ns-allinone-2.35/{ lib/{libtcl*, tclConfig.sh, tcl8*/}, bin/tcsh8* }

If ns-allinone-2.35/ was deleted / moved from the build location, either start from scratch in /home/name/ns2/OLSR/ns-allinone-2.35,  or recreate the original location.

Hameurlaine Hicham

unread,
Mar 31, 2024, 5:34:13 PM3/31/24
to Network Simulator 2 (NS2)
@knudfl hello sir
pleasen i can t patch etx olsr, i get it from github, it gives an error

On Thursday, September 14, 2023 at 11:03:15 PM UTC+1 knudfl wrote:

knudfl

unread,
Apr 1, 2024, 5:51:44 AM4/1/24
to Network Simulator 2 (NS2)
No reason to experiment with those files. You already got an answer .... Jan 7, 2024,

Ref. 1.  The "github olsr-diox-ns234": compile with e.g. g++-4.8
unzip ns-allinone-2.34.zip

I prefer this :  2. 
tar xvf ns-allinone-2.35_gcc5.tar.gz
cd ns-allinone-2.35/
patch -p0 < olsr-W.Cordeiro__ns235.patch
https://drive.google.com/file/d/1RiBWNbjPXzvhzDz8x5F5GQSTZ4STkMcF/view?usp=drive_link
export CC=gcc-4.8 CXX=g++-4.8 && ./install
cd ns-2.35/
cp ns ns235-etx
sudo cp ns235-etx /usr/local/bin/
#####  Simulation
$ ns235-etx script-olsr-etx.tcl
$ ns235-etx 11-script-olsr-etx-rwp11.tcl > 11.txt

-
Reply all
Reply to author
Forward
0 new messages