LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-13-2014, 11:07 AM   #1
dorra
LQ Newbie
 
Registered: Feb 2014
Posts: 8

Rep: Reputation: Disabled
code of CONFIDANT implemented in ns2


I have a problem in understanding NS2 and the implementatio of the CONFIDANT code in NS2.35.
In fact ,i didn't find the code of CONFIDANT.
if someone worked in ns2 and CONFIDANT can please send me the code of CONFIDANT,it will be of great help to me.
 
Old 02-14-2014, 07:20 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
For a starters, the code for ns-2.28 is here ..
http://etd.dtu.dk/thesis/185873/imm3961.pdf

It's a good idea to begin with the ns2 version that the code was meant for.
Then you can later try porting the code to another ns2.


-

Last edited by knudfl; 02-14-2014 at 07:22 AM.
 
1 members found this post helpful.
Old 02-14-2014, 09:40 AM   #3
dorra
LQ Newbie
 
Registered: Feb 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
is there a big diffenrence beetwen ns2.35 and ns2.28? because I have to use ns2.35. thanks
 
Old 02-14-2014, 10:55 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
I assume you have some kind of Linux OS,
and easily can install ns-allinone-2.28 to test the code.
I.e. all versions, ns-allinone-2.26 .. 2.34
can be built on any contemporary 32bits Linux OS.

? Is there a big difference beetwen ns2.35 and ns2.28 :
Yes. AFAIK the MAC** setup was completely changed somewhere around ns229..ns230.


Quote:
I have to use ns2.35
Why do you have to use ns-2.35 ? ?

Any questions ? Then please specify your OS : Name and version.

-

Last edited by knudfl; 02-14-2014 at 11:00 AM.
 
Old 02-14-2014, 02:20 PM   #5
dorra
LQ Newbie
 
Registered: Feb 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
My OS is Ubunto 10.12 .I have to use ns2.35 because my teacher asked me to use it .She said that ns2.35 is a complete version.But I have only the code you sent to me.

Last edited by dorra; 02-14-2014 at 02:50 PM.
 
Old 02-14-2014, 05:55 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 5 .

Please show the output from these two commands :
1) $ cat /etc/issue
2) $ uname -m


About ns-2.35 : May be it has some advanced features.
But that won't do the job if you don't need those extra things.
Most important : It may not be easy to port the code to ns-2.35 .
Some MAC functions are used, and all MAC is completely changed since ns-2.28 .

-
 
1 members found this post helpful.
Old 02-15-2014, 04:10 AM   #7
dorra
LQ Newbie
 
Registered: Feb 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
This is the output of each command:
dorra@dorra-Aspire-5742G:~$ cat /etc/issue
Ubuntu 12.10 \n \l

dorra@dorra-Aspire-5742G:~$ uname -m
i686
 
Old 02-16-2014, 01:22 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 7 .

OK, here is the "HOWTO" for building ns-2.28 in Ubuntu 12.04 - i686 → post #2 →
http://www.linuxquestions.org/questi...-4175482995/#2


CONFIDANT : May be there is some more code to get, see page 117 (about the CD)
→ imm3961.pdf http://etd.dtu.dk/thesis/185873/imm3961.pdf
.. and the c++ code formatting will be right, compared to the "pdf text".

The author `Shanshan Song' still lives here in Denmark →
Post address : Haugesundvej 15, DK - 2850 Naerum

You could write her and ask if it's still possible to buy a copy of the CD.

-

Last edited by knudfl; 02-16-2014 at 01:56 PM.
 
1 members found this post helpful.
Old 02-19-2014, 08:37 AM   #9
dorra
LQ Newbie
 
Registered: Feb 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thank you for your help but unfortunately i can't buy a copy of the CD. Also,our teacher is still asking me to do the simulation in ns2.35.
please may you help me to know the steps i should do to have the code in ns2.35

Last edited by dorra; 02-19-2014 at 08:38 AM.
 
Old 02-19-2014, 10:26 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 9 .
Quote:
I can't buy a copy of the CD.
Why ? ?


Quote:
help me to know the steps I should do to have the code in ns-2.35
First thing to do :
See post #2 : .. begin with the ns2 version that the code was meant for.

Using the "ns-2.28 code" in ns-2.35/ : Just try, and see what happens.

-
 
1 members found this post helpful.
Old 02-19-2014, 10:59 AM   #11
dorra
LQ Newbie
 
Registered: Feb 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
because i'm not from Denmark and i think also that it is expensive for me.

ok i will try to do it.

Last edited by dorra; 02-19-2014 at 11:04 AM.
 
Old 02-19-2014, 01:29 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 11 .

As you can see when reading the pdf file, the author uses English text.
No harm done with a short polite request to the author.
! The address in post #8 is the "International address" :
<Name> <Street> <DK - 2850 Naerum> Denmark.

And : Not asking, you don't know what the code costs.
Could be a very small amount of $$.

-
 
1 members found this post helpful.
Old 02-19-2014, 02:29 PM   #13
dorra
LQ Newbie
 
Registered: Feb 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Smile

ok thank you.
 
Old 02-24-2014, 12:59 PM   #14
dorra
LQ Newbie
 
Registered: Feb 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
I decide with my teacher to implement confidant based in aodv protocol not in dsr and i discovered that i will modify the aodv code .tcl .cc .hh ... to have a new protocol.
I should so add the watchdog ,trust ,a promescute mode.i need help to do these because i haven't much time.thank you

Last edited by dorra; 02-24-2014 at 01:00 PM.
 
Old 02-24-2014, 01:24 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 14 .

Better explain exactly what you are going to use ..
http://linuxsilo.net/docs/smart-questions_en.html
... and with the complete information, I'd suggest
also to ask in the other two "ns2 Forum" :
* http://network-simulator-ns-2.7690.n7.nabble.com/
* https://groups.google.com/forum/?fro...forum/ns-users

Quote:
I should so add the watchdog ,trust ,a promescute mode
I have no knowledge about those subjects.

-
 
  


Reply

Tags
confidant, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 the BECAN sheme is implemented using NS2 shahina Linux - Wireless Networking 1 07-20-2013 04:00 AM
NS2: Require eap-sim authentication code for simulation in ns2.24 noamankhatib Linux - Software 0 04-29-2013 01:03 PM
[NS2] the RSS & link_events code in MIH implemented by NIST RSM_smile Linux - Newbie 0 09-26-2012 09:25 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 04:39 AM
small syntax problem with C code (implemented in Code Composer Studio) illiniguy3043 Programming 6 01-07-2008 03:14 AM


All times are GMT -5. The time now is 10:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration