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 03-12-2014, 05:03 AM   #1
abhi.samyak
LQ Newbie
 
Registered: May 2012
Posts: 16

Rep: Reputation: Disabled
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
 
Old 03-12-2014, 09:19 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by abhi.samyak View Post
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.
 
Old 03-13-2014, 08:02 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
@abhi.samyak : Welcome to LQ.

AFAIK, there is no code / patch for "EDRP".
Please use Google .. ns2 Estimated Distance based Routing Protocol ..
https://www.google.com/webhp?hl=all#...uting+Protocol

http://www.thescipub.com/pdf/10.3844...p.2013.844.848
https://www.youtube.com/watch?v=_5HSpLGJ2T8
.. etc. etc.

-
 
1 members found this post helpful.
Old 03-14-2014, 01:35 AM   #4
abhi.samyak
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-14-2014, 09:07 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by abhi.samyak View Post
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 12:18 PM.
 
1 members found this post helpful.
Old 03-14-2014, 11:41 AM   #6
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
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.
Old 03-19-2014, 05:19 AM   #7
abhi.samyak
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-19-2014, 06:15 AM   #8
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
# 7 : Google .. ns2 trace file energy ..
https://www.google.com/webhp?hl=all#...ce+file+energy
The first hit is http://www.isi.edu/ilense/software/smac/ns2_energy.html
→ "Energy Analysis Through Trace Files".

Etc. etc., 19,000 hits.
 
1 members found this post helpful.
Old 03-19-2014, 11:30 PM   #9
abhi.samyak
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-20-2014, 01:40 AM   #10
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
# 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 01:43 AM.
 
1 members found this post helpful.
Old 03-20-2014, 05:05 AM   #11
abhi.samyak
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
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.
 
  


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
how can I find implementation of multicast routing protocol for MANET? muthana Linux - Newbie 27 02-10-2014 07:20 AM
implementation of leach protocol in ns2.34 sonatasin Linux - Software 7 03-06-2013 11:15 AM
Energy Efficient Routing Protocol implementation in NS2 engrasafkhan Linux - Newbie 1 07-20-2012 08:41 AM
Technical support for configuring test bed for the implementation of a protocol bhupee Linux - Wireless Networking 2 04-17-2009 01:53 AM
MAC protocol implementation legolas_t Programming 0 07-07-2004 09:12 PM

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

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