LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2010, 01:12 AM   #1
shweta_naik
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Rep: Reputation: 0
help regarding routing in ns2


I want some help regarding routing in ns2.
Can anyone tell me how to change .cc file nd then recompile it.
As AODV protocol is working fine with wireless node but now i want to change some part in aodv.cc or any other like aodv.h or rtable.cc but don't where i can make change and then how to see the effect of that..

please help me i am new user so dnt know much about it.

ans sorry if i posted the thread in wrong place but i found that this must be the appropriate place to place this question.


Thank you in advance
Shweta Naik
SVNIT
Surat
 
Old 10-14-2010, 02:26 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Thumbs up

Quote:
Originally Posted by shweta_naik View Post
As AODV protocol is working fine with wireless node but now i want to change some part in aodv.cc or any other like aodv.h or rtable.cc but don't where i can make change and then how to see the effect of that..
Hi you want path of "rtable.cc" or want us to tell you where to make changes in this?

You using NS2 2.34 verison?

Are you lokking for this path ~/ns-allinone-2.34/ns-2.34/Makefile ?

If you can elaborate more we can help you better.

Please let us understand what's your exact requirement.
 
Old 10-14-2010, 02:41 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Moved: This thread is more suitable in Linux - Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-15-2010, 01:22 AM   #4
shweta_naik
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Original Poster
Rep: Reputation: 0
prayag

I want to make changes in that protocol but I don't know where to make changes and after that what i need to do...

Actually I am working on VANET routing so I am first trying to run the in built protocol and it was running also but sir told me to try that see what happen if you make some changes in it and then see the difference. So that i am not getting that where i need to make changes. I found all 5 file regarding protocol like .cc rtable.cc .h all but not getting that where i can make some changes... please help me out

Thank you,
Shweta Naik
 
Old 10-15-2010, 02:29 AM   #5
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Are you sure all these 5 files are the only required files?
 
Old 10-16-2010, 12:20 AM   #6
shweta_naik
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Yeah i saw in one pdf to make routing protocol in ns2 in that they describe only five file bt u can add file as per your need.

please tell me if you have any idea about the programming in ns2 for routing protocol



Thank you.
Shweta naik
 
Old 10-18-2010, 03:28 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
May be have a look at
http://nsnam.isi.edu/nsnam/index.php/Contributed_Code

And you can search for 'routing'
http://nsnam.isi.edu/nsnam/index.php...=routing&go=Go

..
 
Old 10-22-2010, 01:42 AM   #8
shweta_naik
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Knudfl

Thank u bt i am not getting anything from that site..... plz help me out



Please tell me if anyone know that ... do we need to recompile the files if we change in .cc or .h file in ns2???
 
Old 04-22-2013, 01:33 AM   #9
tanmay288
LQ Newbie
 
Registered: Mar 2013
Posts: 9

Rep: Reputation: Disabled
@shweta_naik
perhaps this link will solve your problem
http://www.slideshare.net/TBear76/20100317-adding-cc
 
  


Reply



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
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 03:39 AM
Dynamic routing isn't done; static routing works for about 2 seconds for wireless gregorian Linux - Networking 7 02-19-2010 06:43 AM
pre routing , post routing and qos support msridhar87 Linux - Networking 0 02-13-2009 05:37 AM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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