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

Notices


Reply
  Search this Thread
Old 03-02-2013, 05:31 AM   #76
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

# 74 .

sudo dpkg -i zrp-ns-2.33-ubu1010_i386.deb
https://docs.google.com/file/d/0B7S2...it?usp=sharing

cd zrp-examples/
$ ns-zrp example-zrp.tcl
.... etc. etc. examples.

zrp-examples* https://docs.google.com/file/d/0B7S2...it?usp=sharing

No ns-2.33 or ns-allinone-2.33 is required for using "ns-zrp".

-
 
Old 03-02-2013, 08:31 AM   #77
conglongit90
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Rep: Reputation: Disabled
hello, mr knudfl

after setup Ns-2.35 succesful on ubuntu 10.04
i want have ZRP protocol for NS-2.35 only setup package :
sudo dpkg -i zrp-ns-2.33-ubu1010_i386.deb

https://docs.google.com/file/d/0B7S2...it?usp=sharing

thanks you,
 
Old 03-02-2013, 09:08 AM   #78
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 77.

Please read your posts.
You was informed that there is no zrp for ns-2.35 .

And : No ns-2.35 is required for zrp.
Once the executable file ns* is created, no version of ns-2.xx is required.
The file 'ns-zrp'/ the package zrp-ns + the examples.tcl will do.
Please read the two threads where you have "zrp posts".

-
 
Old 03-02-2013, 10:51 AM   #79
conglongit90
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Rep: Reputation: Disabled
thanks you knudfl,
seems my ubuntu fails,
I have upgraded to ubuntu 12.04
the ZRP protocol installation steps on the same ns-2.3?
 
Old 03-02-2013, 12:02 PM   #80
alwaleed
LQ Newbie
 
Registered: Feb 2013
Posts: 22

Rep: Reputation: Disabled
ZRP

Thank you so much Mr.knudfl, I installed ns-2.33 on ubuntu 10.10 32bit and now working but when I tried to install ZRP the following error appear after the last command (make -k):

make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/khalid/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'

What can I do to solve this problem.

Thanks
 
Old 03-02-2013, 12:40 PM   #81
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 80 .

Nothing to be done for `all'. : Means that everything is OK.
 
Old 03-02-2013, 12:44 PM   #82
conglongit90
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Rep: Reputation: Disabled
Quote:
Originally Posted by alwaleed View Post
Thank you so much Mr.knudfl, I installed ns-2.33 on ubuntu 10.10 32bit and now working but when I tried to install ZRP the following error appear after the last command (make -k):

make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/khalid/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'

What can I do to solve this problem.

Thanks
i still setup ZRP for ubuntu 10.10 ,
can i help me,
thanks!
 
Old 03-02-2013, 12:55 PM   #83
conglongit90
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Rep: Reputation: Disabled
Quote:
Originally Posted by hassan329 View Post
I will help you.

First Step:
You have working ns-2.34.

Second Step:
Go to post No.6 to download ZRP patch.

Third Step:
Copy all file to ns folder

Fourth Step:
Do this
a) cd ns-allinone-2.34/ && patch -p1 < PatchZRP.patch
b) touch ns-2.34/common/packet.h && touch ns-2.33/trace/cmu-trace.h
c) cd ../ && tar xvf ns-allinone-2.33_ZRP.tar.gz
d) cd ns-allinone-2.34/ns-2.34 && make -k

If this not work then you have to do it manually which open the PatchZRP.patch in that file they have written which file u have modified and their line number.
After that make the ns again (this is command make -k)

can help me,
ubuntu 10.04, i want setup ZRP for NS-2.35?
how set?
thank you
 
Old 03-02-2013, 01:50 PM   #84
alwaleed
LQ Newbie
 
Registered: Feb 2013
Posts: 22

Rep: Reputation: Disabled
zrp

Mr knudfl, if everything is ok. how can I ensure that ZRP was installed and working.
Thanks
 
Old 03-02-2013, 02:07 PM   #85
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 84 .

Well, you can install 'ns' :
cd ns-allinone-2.33/ns-2.33/
sudo make install
... And the executable 'ns' is copied to /usr/local/bin/ .

Then you can use the examples :
ns example-zrp.tcl
ns test_zrp.tcl
ns zrp_9.tcl
ns zrp-Demo1-1.tcl
ns zrp-Demo2-1.tcl

-
 
Old 03-02-2013, 02:57 PM   #86
alwaleed
LQ Newbie
 
Registered: Feb 2013
Posts: 22

Rep: Reputation: Disabled
ZRP

Dear Mr.knudfl, I'm really appreciate your efforts with me. excuse me how can I run examples in ZRP to check the validation of it.
I diid the following:

khalid@khalid-linux:~$ cd ns-allinone-2.33/ns-2.33/
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$ sudo make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$ ns example-zrp.tcl
couldn't read file "example-zrp.tcl": no such file or directory
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$

How can I execute examples in ZRP

Thanks
 
Old 03-02-2013, 03:35 PM   #87
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 86 .
Quote:
no such file or directory
1) cd zrp-examples/
2) ns example-zrp.tcl
 
Old 03-02-2013, 05:33 PM   #88
conglongit90
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Rep: Reputation: Disabled
error zrp.tcl help me,?

hello.
thank you, i can succesful ZRP for ns-2.3 on ubuntu 10.04
i want have file_zrp.tcl for me test zrp protocol?


i have code: zrp.tcl

Quote:
#"Agent/ZRP set radius_ 2"
set val(chan) Channel/WirelessChannel;#
set val(prop) Propagation/TwoRayGround;#
set val(netif) Phy/WirelessPhy;#
set val(mac) Mac/802_11;#
set val(ifq) Queue/DropTail/PriQueue;#
set val(ll) LL;#
set val(ant) Antenna/OmniAntenna;#
set val(ifqlen) 50;#
set val(nn) 25;#
set val(rp) ZRP;#
set val(x) 600;#
set val(y) 600;#
set val(stop) 30.0;#
Agent/ZRP set radius_ 2;#

remove-all-packet-headers
add-packet-header Common Flags IP RTP ARP GAF LL LRWPAN Mac ZRP
set ns_ [new Simulator]
$ns_ use-newtrace
set tracefd [open Grid-TCl.tr w]
$ns_ trace-all $tracefd
set namtrace [open Grid-TCl.nam w]
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y)
set topo [new Topography]
$topo load_flatgrid $val(x) $val(y)
set god_ [create-god $val(nn)]

$ns_ node-config -adhocRouting $val(rp)/
-llType $val(ll)/
-macType $val(mac)/
-ifqLen $val(ifqlen)/
-ifqType $val(ifq)/
-antType $val(ant)/
-propType $val(prop)/
-phyType $val(netif)/
-channelType $val(chan)/
-topoInstance $topo/
-agentTrace ON/
-routerTrace ON/
-macTrace OFF/
-movementTrace OFF

for {set i 0} {$i<$val(nn)} {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0;#
}

for {set i 0} {$i<5} {incr i} {
for {set j 0} {$j<5} {incr j} {
set id [expr $i*5+$j]
set X [expr $j*140+20]
set Y [expr $i*140+20]
$node_($id) set X_ [expr $j*140+20]
$node_($id) set Y_ [expr $i*140+20]
$node_($id) set Z_ 0.0
puts "CO-ORD of Node $id=($X,$Y)"
}
}

for {set i 0} {$i<$val(nn)} {incr i} {
$ns_ at $val(stop).0 "$node_($i) reset"
}

$ns_ at $val(stop).0002 "puts /"NS EXITING.../";$ns_ halt"
puts $tracefd "M 0.0 nn $val(nn) x $val(x) y $val(y) rp $val(rp)"
puts $tracefd "M 0.0 prop $val(prop) ant $val(ant)"
proc stop {} {
global ns_ tracefd
$ns_ flush-trace
close $tracefd
}
puts "Starting Simulation..."
$ns_ run
and :
long@long-desktop:~/ns-allinone-2.33/ns-2.33/tcl/ex$ ns zrp.tcl

error :

num_nodes is set 25
invalid command name "-llType"
while executing
"-llType $val(ll)/"
(file "zrp.tcl" line 30)



CAN you help me? thanks !
 
Old 03-02-2013, 06:15 PM   #89
conglongit90
LQ Newbie
 
Registered: Feb 2013
Posts: 17

Rep: Reputation: Disabled

ns
%
i setup seccesful ns-2 and zrp but
but ru file 2.tcl :


Quote:
long@long-desktop:~/ns-allinone-2.33/ns-2.33/tcl/ex$ ns 2.tcl
210
0.0037499999999999999
running nam...

long@long-desktop:~/ns-allinone-2.33/ns-2.33/tcl/ex$ nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."
you help me?
 
Old 03-02-2013, 08:17 PM   #90
alwaleed
LQ Newbie
 
Registered: Feb 2013
Posts: 22

Rep: Reputation: Disabled
Dear Mr.knudfl, are these the following results ensure that ZRP was installed and worked without any problem after run the command (ns example-zrp.tcl.txt)

khalid@khalid-linux:~$ cd ns-allinone-2.33/ns-2.33/
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$ sudo make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$ ns example-zrp.tcl.txt
num_nodes is set 20
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading traffic file
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$

Thanks
 
  


Reply

Tags
ns2, setdest, zrp, zrp#2



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 patch GPSR routing protocol to ns-2.34 nimacasino Linux - Software 287 06-10-2014 12:27 PM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM
Time Zone patch diskoe Slackware 41 03-13-2007 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:01 PM.

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