LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   code of CONFIDANT implemented in ns2 (https://www.linuxquestions.org/questions/linux-newbie-8/code-of-confidant-implemented-in-ns2-4175494785/)

dorra 02-13-2014 10:07 AM

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.

knudfl 02-14-2014 06:20 AM

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.


-

dorra 02-14-2014 08:40 AM

is there a big diffenrence beetwen ns2.35 and ns2.28? because I have to use ns2.35. thanks

knudfl 02-14-2014 09:55 AM

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.

-

dorra 02-14-2014 01:20 PM

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.

knudfl 02-14-2014 04:55 PM

# 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 .

-

dorra 02-15-2014 03:10 AM

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

knudfl 02-16-2014 12:22 PM

# 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.

-

dorra 02-19-2014 07:37 AM

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

knudfl 02-19-2014 09:26 AM

# 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.

-

dorra 02-19-2014 09:59 AM

because i'm not from Denmark and i think also that it is expensive for me.

ok i will try to do it.

knudfl 02-19-2014 12:29 PM

# 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 $$.

-

dorra 02-19-2014 01:29 PM

ok thank you.

dorra 02-24-2014 11:59 AM

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

knudfl 02-24-2014 12:24 PM

# 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.

-


All times are GMT -5. The time now is 04:45 AM.