LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 02-22-2018, 01:17 AM   #1
jhon.kifle
LQ Newbie
 
Registered: Nov 2017
Posts: 5

Rep: Reputation: Disabled
How to add ZRP protocol patch in NS2 V. 2.35 in linux mint?


I have installed ns2 in Linux Mint. I work's nice. Here I need to add the ZRP routing protocol so that I can have simulations of projects with ZRP. So if anyone can help me how to install the patch using a terminal in my Linum mint environment. Or if you have a manual installation method, it will great.
 
Old 02-22-2018, 05:08 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.

Assume Mint 18.3 : The last version which can build ns2 with the default compiler.
I.e. gcc, g++ are version 5.x, e.g. 5.4.0 .

Code:
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < zrp-ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
./install
cd ns-2.35/
cp ns ns-zrp
sudo cp ns-zrp /usr/local/bin/
cd ../nam-1.15/
sudo make install

------------ Simulation -----------
ns-zrp zrp-Demo2-1.tcl
Etc. examples from `zrp-examples-05.2016.tar.gz“
https://drive.google.com/file/d/0B7S...ew?usp=sharing

All ~2500 ns2 ex https://drive.google.com/drive/folde...Ws?usp=sharing
All ~300 patches https://drive.google.com/drive/folde...00?usp=sharing

-
 
Old 03-07-2018, 12:02 AM   #3
jhon.kifle
LQ Newbie
 
Registered: Nov 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you for your answers. I tried all the steps. But, the last instruction does not work. "sudo make instal" does not run successfully. It say " no rule...".
 
Old 03-07-2018, 03:59 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. Is it about nam ?

sudo make install : If nam fails the build / the install, please use a package
https://www.linuxquestions.org/quest...-4175524760/#2

Example : Download, and install
Code:
cd Downloads/
sudo gdebi nam_1.15-10-ubuntu14_amd64.deb
 
Old 03-12-2018, 02:02 AM   #5
jhon.kifle
LQ Newbie
 
Registered: Nov 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
My nam is working for other routing protocols. But i need to add the patch for ZRP. And Still not working! May be Because I do install Linux Mint 17.1 version. Does the version of Linux have an effect.

Last edited by jhon.kifle; 03-12-2018 at 02:06 AM.
 
Old 03-12-2018, 07:28 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.

ZRP is not picky with "OS name / version". Other protocols may be.
NAM is an independent tool. Will show animation from a supported protocol like zrp.

zrp-examples-06.2017.tar.gz https://drive.google.com/file/d/1ie9...ew?usp=sharing

There is no "node definitions for nam" in test_zrp.tcl . Suggest: Add some.

My test
Code:
ns235-zrp-64 1-zrp_exUDP.tcl
	nam sim12.nam & 	// OK animation
ns235-zrp-64 2-zrp-joseph4-13.tcl  // OK animation
ns235-zrp-64 3-zrp-joseph4.tcl	   // OK animation
ns235-zrp-64 4-zrp-wireless3-udp-Aska123.tcl  // OK animation
ns235-zrp-64 example-zrp-100nodes.tcl
	nam pktdemo-100.nam &	// OK animation
ns235-zrp-64 example-zrp.tcl
	nam pktdemo.nam &	// OK animation
ns235-zrp-64 m-zrp.tcl		// OK animation
ns235-zrp-64 shivee-zrp.tcl	// OK animation

ns235-zrp-64 test_zrp.tcl
  nam Grid-TCl.nam &  // No nodes defined for NAM: Nothing in NAM.

ns235-zrp-64 zrp-10-2_KaoutarOurouss.tcl  // OK animation
ns235-zrp-64 zrp_9.tcl			  // OK animation	
ns235-zrp-64 zrp-Demo1-100m.tcl  	
	nam scatternet100.nam &  // OK animation
ns235-zrp-64 zrp-Demo1-1-200m.tcl
	nam scatternet200.nam &  // OK animation
ns235-zrp-64 zrp-Demo1-1.tcl
	nam scatternet10.nam &   // OK animation
ns235-zrp-64 zrp-Demo2-1.tcl
	nam scatternet20.nam &	 // OK animation
The examples to start with are zrp-Demo1-1.tcl, zrp-Demo2-1.tcl
Example, analyzing ...
Code:
$ perl perl-all.pl scatternet10.tr
sent packets= 474
received packets= 474
packets dropped=0
routing agents=0/nrouting overhead= 0.000000
Packet delivery ratio 1.000000
Average path length 1.000000
ns2 scripts https://drive.google.com/file/d/1D_X...ew?usp=sharing

-
 
  


Reply

Tags
ns2, zrp



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
How to install ZRP (Zone routing protocol) patch in ns-2.34 hassan329 Ubuntu 225 03-24-2018 06:58 AM
ZRP patch for ns2.33 ss22 Linux - Newbie 2 02-13-2017 11:54 PM
ZRP protocol patch for NS 2.34 rasha7442 Linux - Newbie 1 01-17-2013 05:36 AM
Help me NS2 ZRP patch helok Programming 0 10-18-2012 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 09:26 AM.

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