olsr and zrp for ns2.35

1,032 views
Skip to first unread message

Kaoutar Ourouss

unread,
Jan 19, 2016, 6:44:00 AM1/19/16
to Network Simulator 2 (NS2)
hello folks,

please help meto find a patch of olsr and zrp for ns2.35 working on ubuntu 14.04 or if you have any suggestions

thanks all

knudfl

unread,
Jan 19, 2016, 7:27:37 AM1/19/16
to Network Simulator 2 (NS2)
Hi.

OLSR + ZRP https://groups.google.com/forum/?fromgroups#!searchin/ns-users/olsr|sort:date
and https://groups.google.com/forum/?fromgroups#!searchin/ns-users/zrp

Build example ..... e.g. Ubuntu 14.04 :
 $ tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing
$ cd ns
-allinone-2.35/
$ patch -p0 < umolsr-ns235_v1.0-2014.patch
https://drive.google.com/file/d/0B7S255p3kFXNeVZhWFVVZlJnUEU/view?usp=sharing
patch -p0 <
umolsr_for-zrp-patched_ns235.patch
https://drive.google.com/file/d/0B7S255p3kFXNSnM3MlhSUXNEZ0E/view?usp=sharing
$
./install
$ cd ns
-2.35/
$ cp ns ns
-olsr-zrp
$ sudo cp ns
-olsr-zrp /usr/local/bin/

.... Then you can do $ ns-olsr-zrp ddebbie90-scenario.tcl
.... from the examples  umolsr-examples-09.2015.tar.gz
https
://drive.google.com/file/d/0B7S255p3kFXNZU5SVTNNbkpkWFE/view?usp=sharing
.. And $
ns-olsr-zrp zrp-Demo2-1.tcl
.. from zrp-examples-2015.tar
https://drive.google.com/file/d/0B7S255p3kFXNVElkLVJWaUp6UkE/view?usp=sharing

-

Kaoutar Ourouss

unread,
Jan 19, 2016, 8:20:47 AM1/19/16
to ns-u...@googlegroups.com
Thank you Sir, but i have already installed ns2.35 so should i add
this patch on it or uninstall it and install this new version which
contain the olsr+zrp patch, notice that i changed the path in./bashrc,
please help me

2016-01-19 12:27 UTC, knudfl <knu...@ofir.dk>:
> Hi.
>
> OLSR + ZRP
> https://groups.google.com/forum/?fromgroups#!searchin/ns-users/olsr|sort:date
> and https://groups.google.com/forum/?fromgroups#!searchin/ns-users/zrp
>
> Build example ..... e.g. Ubuntu 14.04 :
> $ tar xvf ns-allinone-2.35_gcc482.tar.gz
> https:
> //drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing
> $ cd ns-allinone-2.35/
> $ patch -p0 < umolsr-ns235_v1.0-2014.patch
> https:
> //drive.google.com/file/d/0B7S255p3kFXNeVZhWFVVZlJnUEU/view?usp=sharing
> *patch -p0 < **umolsr_for-zrp-patched_ns235.patch*
> https://drive.google.com/file/d/0B7S255p3kFXNSnM3MlhSUXNEZ0E/view?usp=sharing
> $ ./install
> $ cd ns-2.35/
> $ cp ns ns-olsr-zrp
> $ sudo cp ns-olsr-zrp /usr/local/bin/
>
> .... Then you can do $ ns-olsr-zrp ddebbie90-scenario.tcl
> .... from the examples umolsr-examples-09.2015.tar.gz
> https://
> drive.google.com/file/d/0B7S255p3kFXNZU5SVTNNbkpkWFE/view?usp=sharing
> .. And $ ns-olsr-zrp zrp-Demo2-1.tcl
> .. from zrp-examples-2015.tar
> https://drive.google.com/file/d/0B7S255p3kFXNVElkLVJWaUp6UkE/view?usp=sharing
>
> -
>
> On Tuesday, January 19, 2016 at 12:44:00 PM UTC+1, Kaoutar Ourouss wrote:
>>
>> hello folks,
>>
>> please help meto find a patch of olsr and zrp for ns2.35 working on ubuntu
>>
>> 14.04 or if you have any suggestions
>>
>> thanks all
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Network Simulator 2 (NS2)" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ns-users/1Ba0RdobLyQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ns-users+u...@googlegroups.com.
> To post to this group, send email to ns-u...@googlegroups.com.
> Visit this group at https://groups.google.com/group/ns-users.
> For more options, visit https://groups.google.com/d/optout.
>


--
*Kaoutar OUROUSS*
*Ingénieur d'état en Télécommunications et Réseaux*
*Doctorante à l'Institut National des Postes et Télécommunications*
*Equipe : Réseaux, Architecture, Ingénierie des Services et Sécurité*

*)** +212 673 73 38 30*

knudfl

unread,
Jan 19, 2016, 7:14:16 PM1/19/16
to Network Simulator 2 (NS2)
Hi.

You are not supposed to add any *PATH text to .bashrc . Please delete.
Or replace with the original .bashrc : https://drive.google.com/file/d/0B7S255p3kFXNQ2FJQXo5VE8zNzA/view?usp=sharing

***********************************************************************************************
The executable 'ns' or "ns-<any-name>" is hard coded to know the location of it`s libraries:
ns-allinone-2.35/{ lib/*/*, bin/tcsh8* }.

The old year ~1999 text ....
»» Please put .... ,,   IMPORTANT NOTICES: You MUST put .. ««
.. was meant only for a "University Computer" :
.. i.e. when you had no write permissions to /usr/local/.

This will usually do : $ cd ns-allinone-2.35/ns-2.35/ && sudo make install
* I.e.  'make install' will copy 'ns' to /usr/local/bin/,  i.e. i.e.  a system PATH.
Conclusion : The text about setting a *PATH should be ignored.
********************************************************************************

There is an error in the build example from this morning :
Two time "olsr" (wrong), and no zrp.
Right is :
 $ tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing
$ cd ns
-allinone-2.35/
$ patch -p0 < zrp-ns235.patch
https://drive.google.com/file/d/0B7S255p3kFXNNUVuOE9MQWhRNTQ/view?usp=sharing
patch -p0 <
umolsr_for-zrp-patched_ns235.patch
https://drive.google.com/file/d/0B7S255p3kFXNSnM3MlhSUXNEZ0E/view?usp=sharing
$
./install
$ cd ns
-2.35/
$ cp ns ns
-olsr-zrp
$ sudo cp ns
-olsr-zrp /usr/local/bin/


------------------------------------------------------------------------------------------------------------------

knudfl

unread,
Jan 19, 2016, 7:21:59 PM1/19/16
to Network Simulator 2 (NS2)
Besides that : You can have as many ns-allinone-2.xx as you want, installed at the same time.
( I have ~200, which means 200 different executable´s "ns-unique-name" in /usr/local/bin/ :
/usr/local/bin/{ ns, ns235, ns235-olsr, ns235-zrp, ns235-zrp-olsr, .... etc. etc. }.)

----------------------------------------------------------------------------------------------

Kaoutar Ourouss

unread,
Jan 20, 2016, 4:21:37 AM1/20/16
to ns-u...@googlegroups.com
thank you Sir, it was so helpful
have a good day

Kaoutar OUROUSS
Ingénieur d'état en Télécommunications et Réseaux
Doctorante à l'Institut National des Postes et Télécommunications
Equipe : Réseaux, Architecture, Ingénierie des Services et Sécurité

 ) +212 673 73 38 30

Kaoutar Ourouss

unread,
Jan 20, 2016, 1:42:13 PM1/20/16
to ns-u...@googlegroups.com
Hello Sir

I need your help, when i run my zrp.tcl i got the segmentation fault (core dumped) even with the  Queue/DropTail/PriQueue type !!

Kaoutar OUROUSS
Ingénieur d'état en Télécommunications et Réseaux
Doctorante à l'Institut National des Postes et Télécommunications
Equipe : Réseaux, Architecture, Ingénierie des Services et Sécurité

 ) +212 673 73 38 30


knudfl

unread,
Jan 20, 2016, 4:38:20 PM1/20/16
to Network Simulator 2 (NS2)

Kaoutar Ourouss

unread,
Jan 20, 2016, 4:54:37 PM1/20/16
to ns-u...@googlegroups.com
I am very thankful for your help

Kaoutar OUROUSS
Ingénieur d'état en Télécommunications et Réseaux
Doctorante à l'Institut National des Postes et Télécommunications
Equipe : Réseaux, Architecture, Ingénierie des Services et Sécurité

 ) +212 673 73 38 30


Kaoutar Ourouss

unread,
Jan 21, 2016, 5:49:51 AM1/21/16
to ns-u...@googlegroups.com
Hi,

I attached my zrp.tcl, when i run it i got an empty trace file and a "segmentation fault" error in the terminal

Kaoutar OUROUSS
Ingénieur d'état en Télécommunications et Réseaux
Doctorante à l'Institut National des Postes et Télécommunications
Equipe : Réseaux, Architecture, Ingénierie des Services et Sécurité

 ) +212 673 73 38 30


zrp_10.tcl

knudfl

unread,
Jan 22, 2016, 3:21:02 AM1/22/16
to Network Simulator 2 (NS2)
Hi.

You forgot two files .... please attach :
set val(cp)             /home/kaouthar/Documents/cbrgen/tcp-10-1
set val(sc)        /home/kaouthar/Documents/setdest/scen-10

Besides that, it is much more convenient to have the {traffic, scen} files in the same folder as  "zrp-10_KaoutarOurouss.tcl" .....
(( zrp_10.tcl is not a unique name, zrp_10.tcl already exist : ``26 May 2013´´.))
.... Then the tcl code can be shorter, and the files easier relocatable :
set val(cp)        ./tcp-10-1
set val(sc)        ./scen-10


-

Kaoutar Ourouss

unread,
Jan 22, 2016, 3:44:34 AM1/22/16
to ns-u...@googlegroups.com
Hi,

i have already these files (tcp-10-1 and scen-10) in the same folder as zrp_10.tcl, now i installed ns2.33 on ubuntu 12.04 and i wanna add the zrp-olsr patch, let's try it

Kaoutar OUROUSS
Ingénieur d'état en Télécommunications et Réseaux
Doctorante à l'Institut National des Postes et Télécommunications
Equipe : Réseaux, Architecture, Ingénierie des Services et Sécurité

 ) +212 673 73 38 30


tcp-10-1
scen-10

Kaoutar Ourouss

unread,
Jan 22, 2016, 11:04:34 AM1/22/16
to ns-u...@googlegroups.com
Hi Sir
Please i need your help, i run olsr simulation on ns2.33 patched that you provided in ns2 users group but i got the handoff error what should i do ?? 

Kaoutar OUROUSS
Ingénieur d'état en Télécommunications et Réseaux
Doctorante à l'Institut National des Postes et Télécommunications
Equipe : Réseaux, Architecture, Ingénierie des Services et Sécurité

 ) +212 673 73 38 30


knudfl

unread,
Jan 23, 2016, 3:48:20 PM1/23/16
to Network Simulator 2 (NS2)
@Kaoutar Ourouss ,  Hi.

Using an rpm based  32bits (i686) 'Linux OS' (PCLinuxOS 2015) :

1) The ns233 executable : $ ns-zrp zrp-10_KaoutarOurouss.tcl
2) And the ns235 "ns" : $ ns235-zrp-olsr zrp-10_KaoutarOurouss.tcl

Result ....
ns-zrp zrp-10_KaoutarOurouss.tcl                
num_nodes
is set 11
warning
: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Processing node 0
Processing node 1
Processing node 2
Processing node 3
Processing node 4
Processing node 5
Processing node 6
Processing node 7
Processing node 8
Processing node 9
Processing node 10
channel
.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_
= 1.5,  distCST_ = 550.0
SORTING LISTS
...DONE!
end simulation

*** Files : simwrls-1-10.nam 7.3MB , zrp-10-1.tr 21.9MB .
I.e. the results are identical, except for a "Segmentation fault" with ....
$ ns235-zrp-olsr zrp-10_KaoutarOurouss.tcl
** The "Segmentation fault" can be ignored, as the trace files already are at full size !

Your edited  zrp-10-2_KaoutarOurouss.tcl is attached. Line 15, 16 are edited.
And an error in line 101 was edited to ....
    exec nam simwrls-1-10 &
So now you will get a nice NAM animation.

Conclusion : Use a 32bits OS.   May be even the notorious Ubuntu can be used ?
Else : Suggest CentOS 6.7 :
http://ftp.funet.fi/pub/mirrors/centos.org/6.7/isos/i386/CentOS-6.7-i386-LiveCD.iso


-
zrp-10-2_KaoutarOurouss.tcl.txt
Reply all
Reply to author
Forward
0 new messages