Data for comparison

85 views
Skip to first unread message

Samia khan

unread,
May 2, 2017, 3:29:59 AM5/2/17
to Network Simulator 2 (NS2)
anyone has data for any journal paper regarding Blackhole attacks defense mechanism or the data for AODV graph so that I can compare my results. I emailed many authors but no one replies. Thanks.

knudfl

unread,
May 2, 2017, 7:13:32 AM5/2/17
to Network Simulator 2 (NS2)
Hi.

Blackhole attacks defense mechanism : There are patches for idsAODV ... examples ...
blackholeaodv2013-ns235_1.patch , idsAODV-2-for-blackhole2013-patched_ns235.patch
Links
. https://drive.google.com/file/d/0B7S255p3kFXNWWVDZzd2ZC14akE/view?usp=sharing
. https://drive.google.com/file/d/0B7S255p3kFXNT0FjUTBTR21sMzg/view?usp=sharing

New example Clustering-moc_v1__idsAODV.tcl with five Xgraph files generated
https://drive.google.com/file/d/0B7S255p3kFXNSEtrZVRUbDJ3cVk/view?usp=sharing

INFO idsaodv https://groups.google.com/forum/?fromgroups#!topic/ns-users/dDuYvnpy0kI
. https://groups.google.com/forum/?fromgroups#!searchin/ns-users/idsaodv%7Csort:date
-----------------------------
ex_idsAODV.tar.gz

knudfl

unread,
May 2, 2017, 8:52:14 AM5/2/17
to Network Simulator 2 (NS2)
New examples, xgraph_ns2-files-tcl_05.2017 / idsAODV/{ 2paires-idsaodv.tcl, Aska123-f__Black-idsAODV-tcl2.tcl, Clustering-moc_v1__idsAODV.tcl, graph3-blackh-idsaodv.tcl, joseph4-blackh-idsaodv.tcl }
... With multiple plot file output : E.g. the Aska example has 12 graphs ..
→ → xgraph_ns2-files-tcl_05.2017.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNN09QS0RtS2lRaFk/view?usp=sharing

To compare you may also want to look at xgraph_ns2-files-tcl_05.2017/blackholeaodv/{ 2paires-b.tcl, aodv-Xgr_blackhole.tcl, Aska123-f__Black-tcl2.tcl, Clustering-moc_v1_blackh.tcl, graph3-blackhole.tcl ].

---------------------------------

Samia khan

unread,
May 2, 2017, 10:12:16 AM5/2/17
to ns-u...@googlegroups.com
thanks.

--
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/uREPwYyLU-U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-users+unsubscribe@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.

Message has been deleted

Fatima Maher

unread,
Apr 18, 2018, 10:01:45 AM4/18/18
to Network Simulator 2 (NS2)
 

Hi Sir!

I had run the simulation example Clustering-moc_v1__idsAODV.tcl

  but why the two results are the same? and what are these errors mean?

Thanks in advance 🌺

Screenshot from 2018-04-18 06-31-23.png

knudfl

unread,
Apr 18, 2018, 12:19:29 PM4/18/18
to Network Simulator 2 (NS2)
@Fatima Maher ,   Hi.

? Which errors ? And which two results ?
... I.e. the two (different) commands are missing.

Please show text as Text.txt,  never as an image.
I guess you know how to create a file, and copy-paste the text to the file.

Fatima Maher

unread,
Apr 23, 2018, 5:51:09 AM4/23/18
to Network Simulator 2 (NS2)
Sorry for that,
ok, now I'm trying to execute 2paires-idsaodv.tcl script by this command "ns 2paires-idsaodv.tcl" but it gives this error

num_nodes is set 15

    (_o14 cmd line 1)
    invoked from within
"_o14 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 "_o14" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o14 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"
    ("for" body line 2)
    invoked from within
"for {set i $val(nnaodv) } {$i<$val(nn) } {incr i} {
     set node_($i) [$ns_ node]
     $node_($i) random-motion 0;
     $ns_ at 0.01 "$node_($i) l..."
    (file "2paires-idsaodv.tcl" line 71)



then, how to solve this? I need to compare the results of "2paires-b.tcl" and "2paires-idsaodv.tcl"

knudfl

unread,
Apr 23, 2018, 9:20:33 AM4/23/18
to Network Simulator 2 (NS2)
@Fatima Maher ,   Hi.

$ ns235-blackhole-idsaodv-64 2paires-idsaodv.tcl
... No issues here. The files test.tr 5.7MB, test.dat (for Xgraph) 611B are created.
 I.e. you need an executable 'ns' compiled with blackholeaodv + idsAODV.
( I have /usr/local/bin/ns235-blackhole-idsaodv-64 ).

Patches :
1. blackholeaodv2013-ns235_1.patch,
2. idsAODV-2-for-blackhole2013-patched_ns235.patch
https://drive.google.com/drive/folders/0B7S255p3kFXNZ2lWZDBRSW40Q00?usp=sharing

Suggest : Set up another ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
... for  blackhole + idsAODV.

Note: You can have as many ns-allinone-2.xx as you want, installed at the same time.
...  But : Do never add any *PATH text to .bashrc . Not required.

Fatima Maher

unread,
Apr 24, 2018, 10:13:02 AM4/24/18
to Network Simulator 2 (NS2)
I had installed the ns package and the patches .. But when I execute any two examples (one with black hole node and the other with idsaodv) the result of the same topology for example the average throughput were the same
Is that mean the idsaodv have no effect? Or what's the wrong? How to solve that ??

knudfl

unread,
Apr 24, 2018, 3:13:59 PM4/24/18
to Network Simulator 2 (NS2)
@Fatima Maher

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 < blackholeaodv2013-ns235_1.patch
https
://drive.google.com/file/d/0B7S255p3kFXNWWVDZzd2ZC14akE/view?usp=sharing
patch
-p0 < idsAODV-2-for-blackhole2013-patched_ns235.patch
https
://drive.google.com/file/d/0B7S255p3kFXNT0FjUTBTR21sMzg/view?usp=sharing
./install
cd ns
-2.35/
cp ns ns235
-blackhole+idsaodv
sudo cp ns235
-blackhole+idsaodv /usr/local/bin/

------------- Simulation ----------
ns235-blackhole+idsaodv idsaodv2.tcl

Examples, idsAODV-examples-05.17.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNQjJlRWVEQVNCQUk/view?usp=sharing
Reply all
Reply to author
Forward
0 new messages