LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-19-2017, 07:58 PM   #1
nadawy
LQ Newbie
 
Registered: May 2017
Posts: 21

Rep: Reputation: Disabled
direction of nodes in ns2 in urban


hi guys
i tried to write if statements to find the directions of nodes from source node in urban when the angle degree between them 90 in moving or in corner(coordinate x,y) ?how can write it in aodv.cc file?

thanks..

Last edited by nadawy; 05-19-2017 at 08:48 PM.
 
Old 05-20-2017, 04:57 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
ns2 documentation http://www.isi.edu/nsnam/ns/doc/index.html

angle : cd ns-2.35/ && grep -Rin angle *
And also : grep -Rin degree *

... to find that those terms are not much used in protocols (like aodv.)
But mostly found in the documentation and in tcl files.


-
 
Old 05-20-2017, 08:58 AM   #3
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
Urban protocols ...

Protocols dealing with GSR (Geographic Source Routing) like OLSR:
Code:
$ grep -Rin degree *

OLSR.cc:736:                                                    if (degree(nb_tuple) > degree(max)) {
OLSR.cc:1973:/// \param tuple the neighbor tuple which has the main address of the node we are going to calculate its degree to.
OLSR.cc:1974:/// \return the degree of the node.
OLSR.cc:1977:OLSR::degree(OLSR_nb_tuple* tuple) {
OLSR.cc:1978:   int degree = 0;
OLSR.cc:1985:                           degree++;
OLSR.cc:1988:   return degree;
OLSR.h:437:     int             degree(OLSR_nb_tuple*);
Urban examples → http://neo.lcc.uma.es/staff/jamal/vanet/?q=node/11
→ → urban-VANET-scenario-U1.tar.gz, urban-VANET-scenario-U2.tar.gz, urban-VANET-scenario-U3.tar.gz

-
 
1 members found this post helpful.
Old 05-20-2017, 08:57 PM   #4
nadawy
LQ Newbie
 
Registered: May 2017
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Urban protocols ...

Protocols dealing with GSR (Geographic Source Routing) like OLSR:
Code:
$ grep -Rin degree *

OLSR.cc:736:                                                    if (degree(nb_tuple) > degree(max)) {
OLSR.cc:1973:/// \param tuple the neighbor tuple which has the main address of the node we are going to calculate its degree to.
OLSR.cc:1974:/// \return the degree of the node.
OLSR.cc:1977:OLSR::degree(OLSR_nb_tuple* tuple) {
OLSR.cc:1978:   int degree = 0;
OLSR.cc:1985:                           degree++;
OLSR.cc:1988:   return degree;
OLSR.h:437:     int             degree(OLSR_nb_tuple*);
Urban examples → http://neo.lcc.uma.es/staff/jamal/vanet/?q=node/11
→ → urban-VANET-scenario-U1.tar.gz, urban-VANET-scenario-U2.tar.gz, urban-VANET-scenario-U3.tar.gz

-
thank u very much sir
but i need for aodv directions !
 
Old 05-20-2017, 09:01 PM   #5
nadawy
LQ Newbie
 
Registered: May 2017
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
ns2 documentation http://www.isi.edu/nsnam/ns/doc/index.html

angle : cd ns-2.35/ && grep -Rin angle *
And also : grep -Rin degree *

... to find that those terms are not much used in protocols (like aodv.)
But mostly found in the documentation and in tcl files.


-
can u explain more clearly sir ?
 
  


Reply

Tags
ns2, vanet



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
Clustering nodes in ns2 jasmi Linux - Newbie 2 06-06-2015 06:16 AM
coordination of nodes in ns2 hemo Linux - Networking 0 05-17-2015 04:45 PM
Heterogeneous nodes in NS2 ws19561986 Linux - Newbie 0 04-23-2014 01:44 PM
the moving direction of the node of ns2 edison_0927 Linux - Newbie 0 08-13-2012 03:41 AM
To set anchor nodes in NS2 arthidurai Linux - Newbie 2 10-30-2010 10:26 AM

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

All times are GMT -5. The time now is 05:53 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