Implementing LDK algorithm

75 views
Skip to first unread message

RK

unread,
Feb 11, 2018, 12:17:59 AM2/11/18
to Network Simulator 2 (NS2)
Sir We are basic learners of NS2 but can you help us in Implementing  LDK algorithm and IDS mentioned in this paper attached here. This will be helpful for us!!
Thanks in advance.
PROJ7075.pdf

knudfl

unread,
Feb 11, 2018, 8:39:04 AM2/11/18
to Network Simulator 2 (NS2)

RK

unread,
Feb 12, 2018, 1:18:02 AM2/12/18
to Network Simulator 2 (NS2)
where can I get information about Nsallinone 2.34 files we have that folder but what is the purpose of it?  

knudfl

unread,
Feb 12, 2018, 1:29:52 AM2/12/18
to Network Simulator 2 (NS2)
»» we have that folder «« :

You can compress the LDK directory to Ldk.tar.gz or Ldk.zip, and upload the compressed package to 'Google Drive'.
 ... And then show a shared link to Ldk.* in a new post.

RK

unread,
Feb 12, 2018, 1:01:50 PM2/12/18
to Network Simulator 2 (NS2)
In addition to AODV protocol there are some coding in that file(aodv.cc).I have attached aodv.cc and aodvoriginal.cc file. Please tell us what those extra lines do or  whether they are the algorithm implementation  part?
aodv.cc
aodvoriginal.cc

knudfl

unread,
Feb 12, 2018, 1:33:19 PM2/12/18
to Network Simulator 2 (NS2)
? Shoudn't an edited aodv.h be included ? Some functions are not defined ...

aodv/aodv.cc: At global scope:
aodv
/aodv.cc:441:36: error: no void AODV::rt_print(nsaddr_t)’ member function declared in class AODV
 
void AODV::rt_print(nsaddr_t nodeid) {
                                   
^
aodv
/aodv.cc:454:35: error: no void AODV::rt_dist(nsaddr_t)’ member function declared in class AODV
 
void AODV::rt_dist(nsaddr_t nodeid) {
                                   
^
aodv
/aodv.cc: In member function void AODV::recvReply(Packet*)’:
aodv
/aodv.cc:906:20: error: rt_print was not declared in this scope
      rt_print
(index); //print this nodes whole routing table.
                   
^
make
: *** [Makefile:94: aodv/aodv.o] Error 1


A diff file is attached :   $ diff -dbBwaur aodvoriginal.cc aodv.cc > LDK-aodv.cc.diff
... I think the added lines are explaining what's intended to be added / printed out.
LDK-aodv.cc.diff

RK

unread,
Feb 12, 2018, 2:56:09 PM2/12/18
to Network Simulator 2 (NS2)
Sorry sir I coudn't understand

knudfl

unread,
Feb 12, 2018, 3:31:04 PM2/12/18
to Network Simulator 2 (NS2)
May be I'm wrong.  About aodv.h ... may be it's about aodv.cc .

441: void AODV::rt_print(nsaddr_t nodeid) {
454: void AODV::rt_dist(nsaddr_t nodeid) {

... are actually included in aodv.cc .  Could be the code is written in the wrong place or in a wrong way ?
Reply all
Reply to author
Forward
0 new messages