blackhole detection system

284 views
Skip to first unread message

ssbb...@gmail.com

unread,
Mar 30, 2016, 3:37:44 AM3/30/16
to Network Simulator 2 (NS2)
Hello 
I am working on detection of malicious nodes in manet using aodv routing protocol. I am working on ns2-2.35. Please find attached tcl, cc and header files that i am using and below are some screenshots of errors that i have encountered.

1. When we try to make the object file blackholeaodv.o from blackholeaodv.cc we get the following error:

Inline image 3

2. When we added blackholeaodv.o file in Makefile.in after that we are getting the following error:

Inline image 1


3. when we run configure command we get the following error:

Inline image 2

Please guide us and reply as soon as possible.
thanks a lot.
blackholeaodv.cc
blackholeaodv.tcl
blackholeaodv.h

knudfl

unread,
Mar 30, 2016, 9:15:48 AM3/30/16
to Network Simulator 2 (NS2)

ssbb...@gmail.com

unread,
Mar 31, 2016, 5:42:05 AM3/31/16
to Network Simulator 2 (NS2)
Thankyou for ur suggestion sir it worked.
We r working on ubuntu 14.04 (32 bit)...i686...ns-2.35.
Now we are getting the following error while running our blackholeaodv.tcl file:

invalid command name agent/rtproto/blackholeAODV

Below is the blackholeaodv.patch that we hav used.


Please help:)

knudfl

unread,
Mar 31, 2016, 3:33:30 PM3/31/16
to Network Simulator 2 (NS2)
@ssbb...@gmail.com ,  Hi.

Please read the text file "blackholeaodv.tcl" to know that it is not a simulation file.
"blackholeaodv.tcl" is a configuration file. But : The file is never used for anything.

The patch from "mediafire" is the "@Mohit Tahliana patch".
Please read http://mohittahiliani.blogspot.in/2014/05/blackhole-attack-in-ns-2.html
... and the "Mohit Tahliana posts" here in this very Forum.
The simulation example is blackhole.tcl
http://www.mediafire.com/view/0f40bf6z4opr4oe/blackhole.tcl

-

ssbb...@gmail.com

unread,
Apr 1, 2016, 10:12:49 AM4/1/16
to Network Simulator 2 (NS2)
Thank you for suggestion sir
but now we are not using any patch and we we are getting the following error while running blackholeaodv.tcl file:

invalid command name agent/rtproto/blackholeAODV

The folder which contails all are .tcl, .h, .cc files and more are attached herewith
Please look at those files and help us to solve this error...

Thank You  


blackholeaodv.zip

knudfl

unread,
Apr 2, 2016, 9:24:02 AM4/2/16
to Network Simulator 2 (NS2)
@ssbb...@gmail.com .

A random text file cannot be run. "blackholeaodv.tcl" is a text file for configuration purposes.
Lots of <files>.tcl are not simulation files !

Read my above post :
»»Please read the text file "blackholeaodv.tcl" to know that it is not a simulation file.««

To be run with the command $ ns <file>.tcl ,,, the file must be a simulation file.
Usable examples :
1) When the ns-2.35 was built with the "Mohit Tahliana patch" :  blackhole.tcl
.... and similar files with the "blackhole lines" added.

2) When the ns-2.35 was built with "blackholeaodv2013-ns235_1.patch"
https://drive.google.com/file/d/0B7S255p3kFXNWWVDZzd2ZC14akE/view?usp=sharing
.... then these examples will work : blackholeaodv2005-examples-3-Aug2015.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNUmJGd0ZyNUhvVFU/view?usp=sharing

Please read all ...
. http://www.linuxquestions.org/questions/tags/blackhole/
. https://groups.google.com/forum/?fro...hole|sort:date

-

ssbb...@gmail.com

unread,
Apr 5, 2016, 3:40:18 AM4/5/16
to Network Simulator 2 (NS2)

Hello 

Thank you sir, i found that the file blackholeaodv.tcl is just a configuration file.
Given that all the other  blackhole detection functionalities are there in blackholeaodv.cc file,    
 What should we add to blackholeaodv.tcl file to make it a simulation file?? 

Please Help
Thank You

knudfl

unread,
Apr 7, 2016, 7:34:42 AM4/7/16
to Network Simulator 2 (NS2)
@ ssbb...@gmail.com.

The file blackholeaodv.tcl cannot be used for anything , AFAIK.

Please read all files in blackholeaodv2005-examples-3-Aug2015.tar.gz,
....  and read the Mohit Tahliana file :  blackhole.tcl


-

ssb bak

unread,
Apr 7, 2016, 10:46:44 AM4/7/16
to ns-u...@googlegroups.com
Sir there is no  black hole detection file present in mohit tahliana file or 
blackholeaodv2005-examples-3-Aug2015.tar.gz  and we need a black hole aodv detection file.
So please help us in this.
Thank you.
--
You received this message because you are subscribed to a topic in the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-users/apHDZ2Gknts/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.

ssbb...@gmail.com

unread,
Apr 10, 2016, 6:55:09 AM4/10/16
to Network Simulator 2 (NS2)
hello sir
thank you for the suggestion

we are getting the following error while running the blackhole(1).tcl file

bash: syntax error near unexpected token '('

the blackhole(1).tcl file is attached herewith.
please help us to resolve this error.

Thank you
blackhole (1).tcl

1bih

unread,
Jan 12, 2019, 11:57:00 AM1/12/19
to Network Simulator 2 (NS2)
Hi Mr knudfl, i'am loking for a prevention.tcl to detect the blackhole attack on ns2. 
Reply all
Reply to author
Forward
0 new messages