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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-12-2014, 06:03 AM
|
#1
|
LQ Newbie
Registered: May 2012
Posts: 16
Rep: 
|
Regarding implementation of EDRP protocol in NS-2
I am working on implementation of Estimated Distance based Routing Protocol in NS-2.34. I only have base paper with me can anyone guide me in this regard. Thanking in advance 
|
|
|
03-12-2014, 10:19 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,467
|
Quote:
Originally Posted by abhi.samyak
I am working on implementation of Estimated Distance based Routing Protocol in NS-2.34. I only have base paper with me can anyone guide me in this regard. Thanking in advance 
|
If you put "how to implement EDRP protocol in NS-2" into Google, you'd have found LOTS, like this:
http://www.codeforge.com/s/0/ns2-edrp
http://www.codeforge.com/article/214803
There are MANY other links, and this has also been asked (and answered), on here many times before. Doing a small bit of basic research on a question on your own is always the best place to start.
|
|
|
03-14-2014, 02:35 AM
|
#4
|
LQ Newbie
Registered: May 2012
Posts: 16
Original Poster
Rep: 
|
regarding modifications to existing protocols.
Thanks for the help @knufdl  When i search in google for energy efficient routing protocols for Ad-hoc networks I came across many method proposed, many of the papers has mentioned some algorithms in them but inorder to implement that new protocol i am not getting the exact procedures for them in the sense how to modify the existing protocols? and which files to modify? . I working in NS-2.34 ubuntu 10.04. If you know any information regarding this please help me out  Thanking in advance 
|
|
|
03-14-2014, 10:07 AM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,467
|
Quote:
Originally Posted by abhi.samyak
Thanks for the help @knufdl  When i search in google for energy efficient routing protocols for Ad-hoc networks I came across many method proposed, many of the papers has mentioned some algorithms in them but inorder to implement that new protocol i am not getting the exact procedures for them in the sense how to modify the existing protocols? and which files to modify? . I working in NS-2.34 ubuntu 10.04. If you know any information regarding this please help me out  Thanking in advance 
|
We've sent you links to code, and that code has instructions in it. You need to read the instructions/examples that come with the code, and you need to do a search for this.
There's not a lot more we can hand you...but you do need to show effort of your own.
::EDIT:: Corrected. Thanks Knudfl.
Last edited by TB0ne; 03-14-2014 at 01:18 PM.
|
|
1 members found this post helpful.
|
03-14-2014, 12:41 PM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Post #4, @abhi.samyak.
Well, nobody ever asked about EDRP at LinuxQuestions before.
Or at the ns2 headquarters http://network-simulator-ns-2.7690.n7.nabble.com/
or https://groups.google.com/forum/?fro...forum/ns-users
.. Which means that probably nobody have used ns2 for EDRP since the original work.
That's why you won't find much ns2 information.
Other EDRP / "Xxx Estimated Distance based Routing Protocol" ?
ns3 https://www.google.com/webhp?hl=all#...uting+Protocol
OMNeT++ https://www.google.com/webhp?hl=all#...uting+Protocol
ns2 : Be familiar with ns2, if you want to pursue EDRP.
Use ns2, read the documentation, add other "extra protocols" to different ns2 builds.
→ You can have as many times ns-allinone-2.xx as you want, installed at the same time.
Documentation http://www.isi.edu/nsnam/ns/doc/index.html
A list of added protocols, post #3 here ..
http://www.linuxquestions.org/questi...-4175479853/#3
-
|
|
2 members found this post helpful.
|
03-19-2014, 06:19 AM
|
#7
|
LQ Newbie
Registered: May 2012
Posts: 16
Original Poster
Rep: 
|
how to analyze the trace file
Below is the tracefile output i'm getting after simulating 5o nodes using DSR protocol. but in order to analyze the tracefile using awk scripts I need to mention the fields in it but i am not getting how to analyze the same  i have searched in the net but not getting the tracefile format with energy values. If anyone have awk scripts to display the energy please help me. Thanking in advance.
#teace file output
s 11.667950000 _40_ AGT --- 3 cbr 210 [0 0 0 0] [energy 199.998100 ei 0.000 es 0.000 et 0.001 er 0.001] ------- [40:0 41:0 32 0] [3] 0 0
|
|
|
03-20-2014, 12:30 AM
|
#9
|
LQ Newbie
Registered: May 2012
Posts: 16
Original Poster
Rep: 
|
I went through the links mentioned
Thanks @Knufdl for the reply. i have already went through the links you have mentioned but the problem is i am not getting in which exact field i am actually getting energy value. and I am not getting awk script that can extract the energy information from the tracefile, I've browsed for the same in internet but links ends up in broken. please help me out with this.
|
|
|
03-20-2014, 02:40 AM
|
#10
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 9 .
Quote:
I am not getting awk script
|
Awk scripts :
You will most often have to write those yourself, for the specific task.
* 46 "awk for ns2" examples , awk_scripts_03.2014.tar.bz2
https://drive.google.com/file/d/0B7S...it?usp=sharing
-
Last edited by knudfl; 03-20-2014 at 02:43 AM.
|
|
1 members found this post helpful.
|
03-20-2014, 06:05 AM
|
#11
|
LQ Newbie
Registered: May 2012
Posts: 16
Original Poster
Rep: 
|
Thanks
Thanks alot @knudfl for the link it is of great help to me. i am not able to find interpret my tracefile format in the sense finding the positions of the information e.g action = $1;
time = $2;
node_id = $3;
layer = $4;
flags = $5;
seqno = $6;
type = $7;
size = $8;
is as defined in one of the awk script. but i am not able to find the same for my tracefile please help me with this. I am pasting a line from my trace file output:
s 11.667053961 _40_ MAC --- 1 DSR 90 [0 ffffffff 28 800] [energy 200.000000 ei 0.000 es 0.000 et 0.000 er 0.000] ------- [40:255 41:255 32 0] 1 [1 1] [0 1 0 0->0] [0 0 0 0->0]
please help me with this. Thanking in advance.
|
|
|
All times are GMT -5. The time now is 07:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|