watchdg

290 views
Skip to first unread message

Alfy Augustine

unread,
May 11, 2015, 2:20:57 AM5/11/15
to ns-u...@googlegroups.com
Sir ,
       I am doing my M.Tech project based on ns2 and working on intrusion detection in manet using watchdog. But when I recompile ns2 using ./configure I get an error showing that autoconf.h is unchanged. Please help me to solve this.

knudfl

unread,
May 11, 2015, 3:05:40 AM5/11/15
to ns-u...@googlegroups.com
Hi .

»» autoconf.h is unchanged «« :  Not an error.  Is a normal message, to tell that things are OK.

By an errors you will receive the message " .. .... error .... "

-

Alfy Augustine

unread,
May 11, 2015, 10:16:38 AM5/11/15
to ns-u...@googlegroups.com
Hi
  Thanks for the reply. But when I run make file to add watchdog I get an error saying that

aodv/aodv.cc:231:80: error: overloaded function with no contextual type information
aodv/aodv.cc: At global scope:
aodv/aodv.cc:49:12: warning: ‘extra_route_reply’ defined but not used [-Wunused-variable]
aodv/aodv.cc:50:12: warning: ‘limit_route_request’ defined but not used [-Wunused-variable]
make: *** [aodv/aodv.o] Error 1

    Please help me to solve this.


Thanks & Regards,
Alfy Augustine

--
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/_cZdIaFXX-4/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 http://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.

knudfl

unread,
May 11, 2015, 10:56:39 AM5/11/15
to ns-u...@googlegroups.com
Hi .

HOWTO watchdog , ns-2.35 example :
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < watchdog-bayesian2.0_ns235.patch
https://drive.google.com/file/d/0B7S255p3kFXNS1FCOUxLcmtsTmc/view?usp=sharing
$ ./install

-
watchdog-bayesian2.0_ns235.patch
watchdog-bayesian-2.0_ns234.patch

Alfy Augustine

unread,
May 12, 2015, 2:49:09 AM5/12/15
to ns-u...@googlegroups.com
Hi
 Thanks for the respond. I am new to ns2. So i did'nt understand how to work "patch -p0 < watchdog-bayesian2.0_ns235.
patch". Please help me to solve this. And kindly forward me the tcl script for watchdog.

Thanks & Regards,
Alfy Augustine

knudfl

unread,
May 12, 2015, 6:38:12 AM5/12/15
to ns-u...@googlegroups.com
@Alfy Augustine.

What is not to understand ?  
Please simply copy / paste the commands,,, and hit <Enter> for each command :

tar xvf ns-allinone-2.35_gcc482.tar.gz<Enter>
cd ns-allinone-2.35/<Enter>   
... ...   And copy ``watchdog-bayesian2.0_ns235.patch´´ to "ns-allinone-2.35/".
patch -p0 < watchdog-bayesian2.0_ns235.patch<Enter>
./install<Enter>

-

Alfy Augustine

unread,
May 12, 2015, 9:32:58 AM5/12/15
to ns-u...@googlegroups.com
Hi
  Thanks it works. kindly please forward me the tcl script for watchdog.

Thanks & Regards,
Alfy Augustine

knudfl

unread,
May 12, 2015, 10:26:40 AM5/12/15
to ns-u...@googlegroups.com
Hi .

Please see https://groups.google.com/forum/#!msg/ns-users/UP8oOZy0WB0/bCTRgpY0qHEJ
.... There is a file "bhaodv.tcl" attached  ( 11/24/14 ), and some hints about getting watchdog to work.

-

Alfy Augustine

unread,
May 12, 2015, 1:10:31 PM5/12/15
to ns-u...@googlegroups.com
Hi
   When i run bhaodv.tcl following errors are occurred.
num_nodes is set 25
INITIALIZE THE LIST xListHead
ns: _o105 blackhole1:
    (_o105 cmd line 1)
    invoked from within
"_o105 cmd blackhole1"
    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o105" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o105 blackhole1"
 
                           Please help me to solve this. Is it necessary to add bhaodv protocol in ns2 to implement watchdog.

Thanks & Regards,
Alfy Augustine

knudfl

unread,
May 12, 2015, 1:26:17 PM5/12/15
to ns-u...@googlegroups.com
"bhaodv.tcl"  errors :   That's why you are supposed to read the entire thread ...
https://groups.google.com/forum/#!msg/ns-users/UP8oOZy0WB0/bCTRgpY0qHEJ
..... to investigate how @Muddukrishnamurthy Venkatesh , etc. did use "watchdog".

I have no examples (so far) to use with the "aodv-bayesian  patches".
Please study the other available methods for `watchdog´ ....

-
watchdog_links_2015.txt

Alfy Augustine

unread,
May 13, 2015, 3:54:24 AM5/13/15
to ns-u...@googlegroups.com
Hi
      What are the changes needed in tcl file to implement watchdog?

Thanks & Regards,
Alfy Augustine

Alfy Augustine

unread,
May 13, 2015, 3:57:42 AM5/13/15
to ns-u...@googlegroups.com
Hi
  Is it necessary to add bhaodv routing protocol in ns2 inoder to  simulate watchdog. Please help me.

Thanks & Regards,
Alfy Augustine

knudfl

unread,
May 13, 2015, 6:20:27 AM5/13/15
to ns-u...@googlegroups.com
Hi .

Re »» .... add bhaodv routing protocol .... ««.
The naming "bhaodv" is a random name for several tcl scripts. Is short for 'blackhole aodv'.
"bhaodv" is not a protocol.

I will try .... later ... , if I can create or find a "simulation-script.tcl" for watchdog.

-

Alfy Augustine

unread,
May 13, 2015, 11:52:14 AM5/13/15
to ns-u...@googlegroups.com
Hi
Thank you so much for the respond.

Alfy Augustine

unread,
May 14, 2015, 8:50:09 AM5/14/15
to ns-u...@googlegroups.com
hii
     I add watchdog to ns2 and simulate malicious node. What are the changes required in tcl script to simulate watchdog. Please help me

Thanks & Regards,
Alfy Augustine

Alfy Augustine

unread,
May 19, 2015, 1:46:12 AM5/19/15
to ns-u...@googlegroups.com
Hi
   i am currently working on the patch watchdog-bayesian2.0_ns2.35. When i run my tcl file i am not able to observe the proper output ie, it neither detect any malicious node  nor generate any alarm messages. my tcl file is attached below. Please help me to solve this.

Thanks & Regards,
Alfy Augustine

dsr1.tcl

Tinku Vyas

unread,
Feb 15, 2016, 9:52:04 AM2/15/16
to Network Simulator 2 (NS2)
alfy Augustine ...can I see the code of watchdog method which u published in ijcet journal plz

Tinku Vyas

unread,
Feb 17, 2016, 9:33:01 AM2/17/16
to Network Simulator 2 (NS2)
here I m attaching one reffernce paper I whttp://inpressco.com/wp-content/uploads/2015/10/Paper603426-3430.pdfant the code that showing this output....if any one know plz sen me that code plzzzzzzzz

Nithya Lakshana

unread,
Apr 5, 2018, 11:05:17 PM4/5/18
to Network Simulator 2 (NS2)
I have following error when running watching.....please help me sir..thank u in advanzz



num_nodes is set 25
INITIALIZE THE LIST xListHead
can't read "mac_(0)": no such variable
    while executing
"$agent install-tap $mac_(0)"
    (procedure "_o14" line 25)
    (Node/MobileNode add-target line 25)
    invoked from within
"$self add-target $agent $port"
    (procedure "_o14" line 15)
    (Node attach line 15)
    invoked from within
"$node attach $ragent [Node set rtagent_port_]"
    (procedure "_o3" line 85)
    (Simulator create-wireless-node line 85)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns node"
    invoked from within
"set n0 [$ns node]"
    (file "bhaod.tcl" line 67)

knudfl

unread,
Apr 6, 2018, 5:04:11 AM4/6/18
to Network Simulator 2 (NS2)
@Nithya Lakshana ,   Hi.

The command causing the error must be shown, like `ns bhaodv.tcl´
... And an explanation with what you are doing, please. ( Kind of attack, kind of detection.)

"bhaod.tcl" :  Unknown file.     Please attach your simulation file.

Your erors : Generic.   Plenty of faulty simulations with similar errors can be found.

2500 simulations https://drive.google.com/file/d/0B7S255p3kFXNTUlreWIzVGxUXzQ/view?usp=sharing

Nithya Lakshana

unread,
Apr 6, 2018, 11:53:46 AM4/6/18
to ns-u...@googlegroups.com
This is my blackhole attack tcl script

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.

To post to this group, send email to ns-u...@googlegroups.com.
bhaod.tcl

Nithya Lakshana

unread,
Apr 6, 2018, 12:26:14 PM4/6/18
to Network Simulator 2 (NS2)
this error occured ,when i am running your atk3.tcl.....please help me ....

nithya@nithya-Lenovo-B490:~/Downloads/ns2 group/ex-2005-2013__05.17$ ns atk3.tclnum_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead

    (_o58 cmd line 1)
    invoked from within
"_o58 cmd addr"

    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o58" line 2)

    (SplitObject unknown line 2)
    invoked from within
"_o58 addr"

    ("eval" body line 1)
    invoked from within
"eval $node addr $args"
    ("default" arm line 2)
    invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
    (procedure "_o3" line 14)
    (Simulator create-wireless-node line 14)

    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns node"
    invoked from within
"set node_(2) [$ns node]"
    (file "atk3.tcl" line 56)


i did changes in aodv.cc and aodv.h ...after changing this .cc and .h files it does show any error when running make and make clean command..but i am  setting malicious,  tcl script shows error .....

knudfl

unread,
Apr 6, 2018, 1:16:15 PM4/6/18
to Network Simulator 2 (NS2)
@Nithya Lakshana.

All examples in  "ex-2005-2013__05.17/" ....  The definition is hacker.  Not malicious.
...  Please read the files to know.

»» i did changes in aodv.cc and aodv.h «« :
You may have used one of the old "blackhole versions / suggestions" that have never worked.
( E.g. the code which includes `bhAODV´ ?  → Never worked.)

The versatile blackhole version :  blackholeaodv2013-ns235_1.patch (blackhole defined as 'hacker')
https://drive.google.com/file/d/0B7S255p3kFXNWWVDZzd2ZC14akE/view?usp=sharing
 
All 300 patches https://drive.google.com/drive/folders/0B7S255p3kFXNZ2lWZDBRSW40Q00?usp=sharing

lakshan...@gmail.com

unread,
Apr 6, 2018, 9:23:28 PM4/6/18
to ns-u...@googlegroups.com
@knudfl Thank u...i will try this tcl script

Sent from my ASUS
Reply all
Reply to author
Forward
0 new messages