LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2014, 04:22 AM   #1
srikanthchikka
LQ Newbie
 
Registered: Jul 2014
Posts: 16

Rep: Reputation: Disabled
NS2 : How to relate topology locations with kilometers


In ns-2 while creating a radio propagation model, we give certain positions of nodes like the given below values. How to compare or convert them into kilometers or any other real world values?

$node_(0) set X_ 5.0
$node_(0) set Y_ 2.0
$node_(0) set Z_ 0.0

$node_(1) set X_ 390.0
$node_(1) set Y_ 385.0
$node_(1) set Z_ 0.0

Thanks in advance.
 
Old 09-10-2014, 06:04 AM   #2
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 and 18 at present.
Posts: 1,259

Rep: Reputation: 279Reputation: 279Reputation: 279
ns2 is a game, right? (I'm an old guy so bear with me) It's no doubt in "Virtual space" so I doubt very much if you're going to get any sort of "real world" conversion factor.

From your figures it looks like the two nodes have three absolute co-ordinates to define their position? They're both the same height above "sea level" (Is there sea in ns2?) They're separated by 385 units in X and 382 units in Y and you can work out the angular relationship as well.

The units can probably be whatever you want to call them as it's a game; miles, kilometers, parsecs, etc.

With the info you've provided that's my best guess though I don't see the relevance of having to have real world units.

(I bet I've got what you want to know totally wrong! )

Play Bonny!

 
1 members found this post helpful.
Old 09-10-2014, 06:46 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

Rep: Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286
@Soadyheid

No. Ns2 is a network simulator.
Google .. ns2 .. https://www.google.com/webhp?hl=all&...sl#hl=en&q=ns2
http://www.isi.edu/nsnam/ns/

And : We have thousands of ns2 posts at LQ :
http://www.linuxquestions.org/questions/tags/ns2/

-
 
2 members found this post helpful.
Old 09-10-2014, 08:30 AM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 and 18 at present.
Posts: 1,259

Rep: Reputation: 279Reputation: 279Reputation: 279
So there you go, I was totally correct!
Quote:
(I bet I've got what you want to know totally wrong! )
I googled it as well but obviously picked the wrong link. I've had a quick look at the network simulator definition and unfortunately am none the wiser so I'll leave any further comments to those who understand.

Thanks to knudfl for the, er... clarification.

Play Bonny!

 
Old 09-11-2014, 05:44 AM   #5
srikanthchikka
LQ Newbie
 
Registered: Jul 2014
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
@Soadyheid

No. Ns2 is a network simulator.
Google .. ns2 .. https://www.google.com/webhp?hl=all&...sl#hl=en&q=ns2
http://www.isi.edu/nsnam/ns/

And : We have thousands of ns2 posts at LQ :
http://www.linuxquestions.org/questions/tags/ns2/

-
Can you please help me with the above said parameters @knudfl
 
Old 09-11-2014, 08:33 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

Rep: Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286
Ref. #5, #1 .

Some "distances" in ns2 can use »scientific notation«.
https://www.google.com/webhp?hl=all&...tific+notation

Example from zrp-Demo1-1-200m.tcl :
Agent/ZRP set radius_ 3.65262e-10 ;# Setting ZRP radius : distance 200 meters


-
 
1 members found this post helpful.
Old 09-12-2014, 01:34 AM   #7
srikanthchikka
LQ Newbie
 
Registered: Jul 2014
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Ref. #5, #1 .

Some "distances" in ns2 can use »scientific notation«.
https://www.google.com/webhp?hl=all&...tific+notation

Example from zrp-Demo1-1-200m.tcl :
Agent/ZRP set radius_ 3.65262e-10 ;# Setting ZRP radius : distance 200 meters


-
Thank you for the reply, also can you help me with using a Radio propagation model if you have done any work on it. I need to find how the link loss and received power NS2 is calculating for given specs.

Thanks in advance
 
Old 09-12-2014, 03:56 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

Rep: Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286Reputation: 3286
← #7 .

Radio propagation / propagation models ...
. http://www.isi.edu/nsnam/ns/doc/node215.html
. http://ns-3.blogspot.dk/2008/01/ns2-...on-models.html


-
 
1 members found this post helpful.
Old 09-12-2014, 04:39 AM   #9
srikanthchikka
LQ Newbie
 
Registered: Jul 2014
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Thankyou sir. I had seen these materials yesterday, but how can I use threshold.cc to get a relation between transmission power and range? I mean what command to give to get the result.

Thanks in Advance sir.
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 add nodes in tcl script to create topology traffic in ns2.31? lavendar89 Linux - Software 11 10-02-2014 11:10 PM
Exporting topology generated by BRITE to NS2.34 mulyead Linux - Software 2 11-20-2013 06:26 AM
ns2- code for collecting the statistics of the topology Madhu S H Linux - Software 6 11-07-2011 05:32 AM
NS2 simulator to work with Rocketfuel Topology itwitter Linux - Virtualization and Cloud 2 02-05-2011 03:15 AM
LXer: Can we relate? LXer Syndicated Linux News 0 12-31-2006 01:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration