Home Forums HCL Reviews Tutorials Articles Register Search Today's Posts Mark Forums Read
 LinuxQuestions.org NS2 : How to relate topology locations with kilometers
 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

 09-10-2014, 04:22 AM #1 srikanthchikka LQ Newbie   Registered: Jul 2014 Posts: 16 Rep: 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.
 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: 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.
 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: @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.
09-10-2014, 08:30 AM   #4
Senior Member

Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 and 18 at present.
Posts: 1,259

Rep:
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!

09-11-2014, 05:44 AM   #5
srikanthchikka
LQ Newbie

Registered: Jul 2014
Posts: 16

Original Poster
Rep:
Quote:
 Originally Posted by knudfl @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/ -

 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: 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.
09-12-2014, 01:34 AM   #7
srikanthchikka
LQ Newbie

Registered: Jul 2014
Posts: 16

Original Poster
Rep:
Quote:
 Originally Posted by knudfl 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.

 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: ← #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.
09-12-2014, 04:39 AM   #9
srikanthchikka
LQ Newbie

Registered: Jul 2014
Posts: 16

Original Poster
Rep:
Quote:
 Originally Posted by knudfl ← #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 -
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.

 Tags ns2

 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 Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post lavendar89 Linux - Software 11 10-02-2014 11:10 PM mulyead Linux - Software 2 11-20-2013 06:26 AM Madhu S H Linux - Software 6 11-07-2011 05:32 AM itwitter Linux - Virtualization and Cloud 2 02-05-2011 03:15 AM LXer Syndicated Linux News 0 12-31-2006 01:54 AM

LinuxQuestions.org

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

 Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap -