VANET

269 views
Skip to first unread message

1bih

unread,
Oct 1, 2019, 10:27:33 AM10/1/19
to Network Simulator 2 (NS2)
Hello Mr Knufdl, 
I'am working on cybersecurity of VANETs, and i need an attack scenario to implement it 

knudfl

unread,
Oct 1, 2019, 1:23:53 PM10/1/19
to Network Simulator 2 (NS2)
Hi.

Byzantine attacks, aodv blackhole,  aodv-promiscuous-installtap, aodv malicious, grayhole,  rushing-attacks, aomdv  rushing-attacks, sybil-attack, zrp-malicious, wormhole .... ( watchdog, idsAODV ).




Hitesh Sharma

unread,
Dec 11, 2019, 12:49:29 AM12/11/19
to Network Simulator 2 (NS2)
Sir 

knudfl,


I am working on mitigation technique for blackhole attack. I have implemented blackhole attack and it is running correctly. I am facing issues in it its IDS .
I tried using this ids but its was showing error.
I am attaching a zip file.  To implement the attack according to my logic , please replace the aodv.cc and aodv.h file in your ns-2.35/aodv directory. the go to ns-2.35 directory and run two commands , " make clean " and " make ".
then rung ns aodv.tcl file , to check the blackhole attack. 
Now when i am patching the ids patch file which is attached below , i am getting error.
I actually i don't know what changes should i make to the IDS for black hole attack.

Please guide me.



Regards,
Hitesh Sharma,
Student,
ME - Mobile Communication and Network Technology,
GTU School of Engineeing and Technology,
Gandhinagar.


Please visit  :






--
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 view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/b551e70e-584f-4a06-8b7e-fbd872e2d56b%40googlegroups.com.
Dymo-blackhole-idsAODV_ns235.patch
blackhole Attack.tar.gz

knudfl

unread,
Dec 12, 2019, 9:32:02 AM12/12/19
to Network Simulator 2 (NS2)
@Hitesh Sharma.
1.  Bold types is for a single word. Please use normal types. Is more readable.
     Not in somebody else´s Vanet thread.

"zip file" :  No zip.  A gzipped tar file is present.

»» please replace the aodv.cc and aodv.h file in your ns-2.35/aodv ««
? Based on some old student notes ?  Probably not usable for anything.
No information can be extracted from the results !
-----------------------------------------------------------

The advanced "BlackholeAODV" :
ns-2.35/
├── blackholeaodv
│   ├── blackholeaodv.cc
│   ├── blackholeaodv.h
│   ├── blackholeaodv_logs.cc
│   ├── blackholeaodv_rqueue.cc
│   ├── blackholeaodv_rqueue.h
│   ├── blackholeaodv_rtable.cc
│   ├── blackholeaodv_rtable.h
├── common
│   └── packet.h
├── Makefile.in
├── queue
│   └── priqueue.cc
└── tcl
    └── lib
        ├── ns-agent.tcl
        ├── ns-lib.tcl
        ├── ns-mobilenode.tcl
        └── ns-packet.tcl

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 ns-black
sudo cp ns-black /usr/local/bin/


Examples
To unsubscribe from this group and stop receiving emails from it, send an email to ns-u...@googlegroups.com.

Hitesh Sharma

unread,
Dec 17, 2019, 10:07:23 AM12/17/19
to Network Simulator 2 (NS2)
Sir , I have successfully pateched blackholeaodv and it is working properly now.

But when I tried to modify one of my file to rn blackhole in mobility. I am getting following error.

hitesh@hitesh-Inspiron-3542:~/Downloads/201912/ADOV/b/10$  ns aodv.tcl
num_nodes is set 100
INITIALIZE THE LIST xListHead
can't read "ns": no such variable
    while executing
"$ns $node_(9)-config -adhocRouting $val(brp)"
    (file "aodv.tcl" line 67)

I am attaching my fles below. Please guide me sir




Regards,
Hitesh Sharma,
Student,
ME - Mobile Communication and Network Technology,
GTU School of Engineeing and Technology,
Gandhinagar.


Please visit  :





To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/e731060a-b656-4065-b3bf-7dc4a669deb7%40googlegroups.com.
mob
aodv.tcl

knudfl

unread,
Dec 17, 2019, 11:59:23 AM12/17/19
to Network Simulator 2 (NS2)
@Hitesh Sharma

Repeat :  Bold types is for a single word
And colors :   Colors is also for a single word only.
!  Use normal writing !
The simulation file :  `aodv.tcl´ is a generic name.
!  Always use a new unique file name for a new file.

Your errors :  ns is defined as ns_   .... so please edit ns commands to ns_
Ref. your     set ns_ [new Simulator]


Hitesh Sharma

unread,
Dec 17, 2019, 11:58:42 PM12/17/19
to Network Simulator 2 (NS2)
Sir , I made correction as per your guidance , but stillnow it is showing error for blackhole node.

hitesh@hitesh-Inspiron-3542:~/Downloads/201912/ADOV/b/10$  ns test.tcl

num_nodes is set 100
INITIALIZE THE LIST xListHead
extra characters after close-quote
    while executing
"$ns_ at 1 "$node_(9) label \"blackhole node\"
$ns_ at $val(finish) "finish"
puts "Start of simulation..."
$ns_ run

"
    (file "test.tcl" line 92)


Please guide me sir

Regards,
Hitesh Sharma,
Student,
ME - Mobile Communication and Network Technology,
GTU School of Engineeing and Technology,
Gandhinagar.


Please visit  :





--
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.
test.tcl
mob

knudfl

unread,
Dec 18, 2019, 5:07:31 AM12/18/19
to Network Simulator 2 (NS2)
@Hitesh Sharma.

Yes, you have multiple typos / errors.
I began editing your sketchy file.  No result yet.  See attachment.
.... Better have a thorough read of the examples, blackholeaodv2005~2013-examples-05.17.tar.gz

P.S. : test.tcl is also a generic name. Please invent a file name.
Name list, the current ~3500 ns2 simulations : See attachment.
Link to the 39MB package with simulations, all_tcl-examples-5.tar.xz 
Namelist-ns2-sim.txt
pre__Hitesh-Sharma-aodv1.tcl
Reply all
Reply to author
Forward
0 new messages