LinuxQuestions.org
Visit Jeremy's Blog.
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 05-19-2013, 01:24 AM   #136
en.khalid82
Member
 
Registered: Apr 2013
Posts: 61

Rep: Reputation: Disabled

Dear Mr.knudfl, when I tried to reach the threshold. tha following error appeared. may you help me please.

khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33/indep-utils/propagation$ cd g++41 threshold.cc -o threshold
bash: cd: g++41: No such file or directory
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33/indep-utils/propagation$

Thanks
 
Old 05-19-2013, 01:27 AM   #137
en.khalid82
Member
 
Registered: Apr 2013
Posts: 61

Rep: Reputation: Disabled
Dear Mr.Mr.knudfl, how can I set the distance of TworayGroung 100m instead of 250m in threshold.cc.

Thanks
 
Old 05-19-2013, 02:48 AM   #138
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
Posts # 132, # 133, # 134, # 135, # 136, # 137 :

... You can try asking at http://network-simulator-ns-2.7690.n7.nabble.com/

I don't know anything about those subjects , sorry.
 
Old 05-19-2013, 04:00 AM   #139
en.khalid82
Member
 
Registered: Apr 2013
Posts: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Posts # 132, # 133, # 134, # 135, # 136, # 137 :

... You can try asking at http://network-simulator-ns-2.7690.n7.nabble.com/

I don't know anything about those subjects , sorry.
Thank you so much Mr.knudfl
 
Old 05-21-2013, 08:51 AM   #140
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
# 136 :

$ cd indep-utils/propagation/ && g++41 threshold.cc -o threshold

$ ./threshold -m TwoRayGround 100
Code:
distance = 100
propagation model: TwoRayGround

Selected parameters:
transmit power: 0.281838
frequency: 9.14e+08
transmit antenna gain: 1
receive antenna gain: 1
system loss: 1
transmit antenna height: 1.5
receive antenna height: 1.5

Receiving threshold RXThresh_ is: 1.42681e-08
TwoRayGround http://www.winlab.rutgers.edu/~zhibi...rayground.html

Set a distance ( radius ) in a tcl file :
http://hpds.ee.ncku.edu.tw/~smallko/ns2/range_en.htm
( Google .. ns2 wireless distance .. )

More about distance / radius in the ZRP.Manual.pdf
http://www.netlab.tkk.fi/opetus/s380...08-Nicklas.pdf
-

Last edited by knudfl; 05-21-2013 at 09:43 AM.
 
Old 05-21-2013, 09:13 AM   #141
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
# 121 . Please have a look at all the awk scripts in ns-2.33 :

$ find ns-allinone-2.33/ns-2.33/ -name "*.awk"

Other awk scripts ...
OK (or may be OK), ZRP, scatternet10.tr : $ awk -f Pdf-0.awk scatternet10.tr
genthroughput.awk
Throughput2007.awk
instantThroughput.awk ?
instantThroughputStll.awk ?
Pdf-0.awk
-
Attached Files
File Type: txt ns2-awk_scripts0513.tar.bz2.txt (12.1 KB, 100 views)

Last edited by knudfl; 05-21-2013 at 09:45 AM.
 
Old 05-21-2013, 12:49 PM   #142
en.khalid82
Member
 
Registered: Apr 2013
Posts: 61

Rep: Reputation: Disabled
Dear Mr-knudfl, excuse me may you sent me tcl file for ZRP work with various zove radius if you have.

Thanks
 
Old 05-21-2013, 01:32 PM   #143
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
# 142 .

All the zrp examples I ever found are in the package zrp-examples-2012.tar.bz2
https://docs.google.com/file/d/0B7S2...it?usp=sharing

Example radius setting :
Agent/ZRP set radius_ 2

Can be edited to the "100 meters" figure :
Agent/ZRP set radius_ 1.42681e-08

... Ref. post # 140 :
'distance 100' : 1.42681e-08
'distance 250' : 3.65262e-10

P.S.: I have no idea if the above radius change will be visible in the outputs.
Actually you can set the radius to almost any figure, and run the file OK.

-

Last edited by knudfl; 05-21-2013 at 03:46 PM.
 
Old 05-22-2013, 11:47 AM   #144
en.khalid82
Member
 
Registered: Apr 2013
Posts: 61

Rep: Reputation: Disabled
Dear Mr.knudfl, excuse me how can I ensure that throuput result is right according to the result of packet delivery ratio

Thanks
 
Old 05-22-2013, 11:11 PM   #145
en.khalid82
Member
 
Registered: Apr 2013
Posts: 61

Rep: Reputation: Disabled
Dear Mr.knudfl, when I run the threshold to change the distance by using the following commands

$ cd ns/indep-utils/propagation/
$ g++ -lm threshold.cc -o threshold

The following error appeared

khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33/indep-utils/propagation$ g++ -lm threshold.cc -o threshold
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33/indep-utils/propagation$ threshold -m TwoRayGround 100
threshold: command not found
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33/indep-utils/propagation$

may you help me, please.

Thanks
 
Old 05-23-2013, 03:43 AM   #146
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
# 145 .

cd ns-allinone-2.33/ns-2.33/indep-utils/propagation/
./threshold -<etc. etc.>

A period ( . ) means the current directory.
'threshold' is not in your path and must be used as './threshold'.

Installing threshold to a system path :
$ sudo cp threshold /usr/local/bin/

-
 
Old 05-23-2013, 10:09 AM   #147
en.khalid82
Member
 
Registered: Apr 2013
Posts: 61

Rep: Reputation: Disabled
Thank you so much Mr.knudfl, may you send me the file in post #121 because there was a problem when I downloaded it.

Thanks
 
Old 05-23-2013, 02:25 PM   #148
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
# 147 .

Plenty of links, bot none in post #121.

Please show the link and the file name.
 
Old 05-23-2013, 11:35 PM   #149
en.khalid82
Member
 
Registered: Apr 2013
Posts: 61

Rep: Reputation: Disabled
sorry Mr.knudfl, may you resend it to me.

Thanks

---------- Post added 05-23-13 at 11:36 PM ----------

Mr.knudfl, I need the file in #147. may you resend it to me.

Thanks
 
Old 05-24-2013, 02:27 AM   #150
en.khalid82
Member
 
Registered: Apr 2013
Posts: 61

Rep: Reputation: Disabled
Dear Mr.knudf, please may you help me about how can I patch the ZRP package in ubuntu 10.10 32bit step by step.

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 07:19 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