Zrp

155 views
Skip to first unread message

Ahouari Lynda

unread,
Apr 21, 2019, 4:22:15 AM4/21/19
to ns-u...@googlegroups.com
Hello 

Please can every bady help me to implement zrp protocol in ns2 for Ubuntu 14.04??

Cordially 

knudfl

unread,
Apr 21, 2019, 5:51:43 AM4/21/19
to Network Simulator 2 (NS2)
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

knudfl

unread,
May 7, 2019, 2:25:05 PM5/7/19
to Network Simulator 2 (NS2)
@Ahouari Lynda ,   Hi.

Please delete the post with all the warning lines.
You can repeat the content, but without the surplus lines about warnings.
Warnings are to be ignored.  These warnings are meant for ns2 developers only.
( .... There is no development of ns2. Ended years ago.  ns2 was replaced by ns3.)

»» invalid command name "Agent/ZRP" «« :  You are definitely not following my instructions of `Apr 21, 2019´.
.... Seems you are trying to add ZRP to an ns-2.35/ already patched with OLSR.

? Do you want to run simulations with two main protocols. May be possible?, if you also have two complete sections with "ns_ node-config" in your simulation :
1.
$ns_ node-config -adhocRouting OLSR \  
.
.

2.
$ns_ node-config -adhocRouting ZRP \  
.
.

Usually you would just setup multiple ns-allinone-2.35 : 
You can have as many as you want, installed at the same time, see ns2-INFO

Example :
/home/name/ns2/a/ns-allinone-2.35/
/home/name/ns2/b/ns-allinone-2.35/
/home/name/ns2/c/ns-allinone-2.35/
/home/name/ns2/d/ns-allinone-2.35/
/home/name/ns2/e/ns-allinone-2.35/
.... and with all the executable "ns-name" in /usr/local/bin/
.... My example is attached (More than 200 installs on one OS.)



usr.local.bin-04May19.txt

knudfl

unread,
May 7, 2019, 3:06:04 PM5/7/19
to Network Simulator 2 (NS2)
@Ahouari Lynda.

Actually we already have kind of a "combined patch for ZRP + OLSR" : 
zrp-ns235.patch + umolsr_for-zrp-patched_ns235.patch
I.e. you will have to patch in this sequence
$ tar xvf ns-allinone-2.35_gcc5.tar.gz
$ cd ns
-allinone-2.35/
$ patch
-p0 < zrp-ns235.patch
$ patch
-p0 < umolsr_for-zrp-patched_ns235.patch
$
./install
$ cd ns
-2.35/
$ cp ns ns235
-zrp-olsr
$ sudo cp ns235
-zrp-olsr /usr/local/bin/

--------------- Simulation --------------
$
ns235-zrp-olsr 2Energy-OLSR-Soumia.tcl
$
ns235-zrp-olsr zrp-Demo1-1.tcl
  • The patch "umolsr_for-zrp-patched_ns235.patch" is also attached.



umolsr_for-zrp-patched_ns235.patch

Ahouari Lynda

unread,
May 7, 2019, 6:24:34 PM5/7/19
to ns-u...@googlegroups.com
Hi sir excuse me i don't now how  i delete the post 

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/a2810a29-fcf7-4c05-adf4-548d1be91f90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ahouari Lynda

unread,
May 7, 2019, 6:31:33 PM5/7/19
to ns-u...@googlegroups.com
Sorry again the post is deleted 
Cordially

Nahid Mahamud

unread,
Oct 8, 2023, 5:03:49 AM10/8/23
to Network Simulator 2 (NS2)
Hello 
I have followed your instructions on patching ns2 with zrp

but for the last two commands, it shows the error:

cp: cannot stat 'ns': No such file or directory

as there is no 'ns' such directory in the ns-2.35 directory and also there is no folder or file named ns235-zrp
I have only found a folder named zrp in the ns-2.35 folder. It would be very kind of you to provide me with a solution.
Cordially.

knudfl

unread,
Oct 8, 2023, 5:26:40 AM10/8/23
to Network Simulator 2 (NS2)
nahid, Hi.

The old build example is for an older Ubuntu. Latest is .......
export CC=gcc-4.8 CXX=g++-4.8 && ./install

cd ns-2.35/
cp ns ns235-zrp
sudo cp ns235-zrp /usr/local/bin/

I.e. g++-4.8 is required .....
sudo su
echo "deb [trusted=yes] http://dk.archive.ubuntu.com/ubuntu/ bionic main universe" >> /etc/apt/sources.list
exit
sudo apt update
sudo apt install g++-4.8

Nahid Mahamud

unread,
Oct 8, 2023, 10:20:57 PM10/8/23
to Network Simulator 2 (NS2)
Sir
Thank you very much it works now. Is there any SZRP patch available for ns? If there is will you be able to provide it to me. It would help a lot. I need it for the reference of my work. 
Reply all
Reply to author
Forward
0 new messages