sample ns2 codes for wormhole attack simulation
#1

sir can u please provide me with ns2 code for wormhole attack simulation?? i need for my seminar presentation .... my id is t.jophy[at]gmail.com
Reply
#2
pls send me wormhole attack implemenation in ns2.34. i m new to ns2 so i facing problems in implementing
Reply
#3
(19-03-2013, 10:40 AM)Guest Wrote: pls send me wormhole attack implemenation in ns2. i m new to ns2 so i facing problems in implementing and my email id is aditya279138[at]gmail.com

Reply
#4
To get full information or details of wormhole attack simulation. please have a look on the pages

http://studentbank.in/report-wormhole-at...r-networks

if you again feel trouble on wormhole attack simulation. please reply in that page and ask specific fields in wormhole attack simulation.
Reply
#5
Hi..can u please send me the code for the simulation of wormhole attack in manet using ns2..my id is elenordiaz43[at]gmail.com
Reply
#6
can u please send me ns2 code for sinkhole attack simulation....my id is bjadhav22[at]gmail.com
Reply
#7
hi
I want source code wormhole attack in ns2 for wsn with tcl.
please help me....
Reply
#8
i need help. can anybody please send me ns2 code for wormhole attack simulation...my email fahmirashid71[at]gmail.com
Reply
#9
sample ns2 codes for wormhole attack simulation

A Mobile Ad hoc Network (MANET) comprises of mobile nodes that moves independently in an open environment. Communication between the nodes in a MANET is enabled with the aid of intermediate routers. The nature of MANET such as open medium, dynamic network topology, lack of centralized monitoring, and lack of clear defense mechanisms makes it vulnerable to several routing attacks. In MANET routing, there is a high probability for intermediate nodes to be malicious that might be a threat to the security. Wormhole is the common attack in ad hoc routing in which one malicious node tunnels the packets from its location to other malicious nodes. If the source node happens to choose this fake route, the attacker has the option of delivering the packets or dropping them. In sample22.tcl, the wormhole attacker does not obey the communication model. Data Transmission is established between nodes using UDP agent and CBR traffic. An adversary forms tunnel with other adversary using a direct low latency communication link.

#Filename: sample22.tcl

# Define options
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy ;# network interface type
set val(mac) Mac/802_11 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# page link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 50 ;# max packet in ifq
set val(nn) 14 ;# number of mobilenodes
set val(rp) AODV ;# routing protocol
set val(x) 500 ;# X dimension of topography
set val(y) 500 ;# Y dimension of topography
set val(stop) 20 ;# time of simulation end
set sender 0 ;# Sender
set receiver 9 ;# Receiver

#-------Event scheduler object creation--------#

set ns [new Simulator]


# set up topography object
set topo [new Topography]
$topo load_flatgrid $val(x) $val(y)

set god_ [create-god $val(nn)]

# unity gain, omni-directional antennas
# set up the antennas to be centered in the node and 1.5 meters above it
Antenna/OmniAntenna set X_ 0
Antenna/OmniAntenna set Y_ 0
Antenna/OmniAntenna set Z_ 1.5
Antenna/OmniAntenna set Gt_ 1.0
Antenna/OmniAntenna set Gr_ 1.0

# Initialize the SharedMedia interface with parameters to make
# it work like the 914MHz Lucent WaveLAN DSSS radio interface
Phy/WirelessPhy set CPThresh_ 10.0
Phy/WirelessPhy set CSThresh_ 1.559e-11
Phy/WirelessPhy set RXThresh_ 3.652e-10 ;#250m
Phy/WirelessPhy set Rb_ 2*1e6
Phy/WirelessPhy set Pt_ 0.2818
Phy/WirelessPhy set freq_ 914e+6
Phy/WirelessPhy set L_ 1.0

#configure the nodes
$ns node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channelType $val(chan) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace OFF \
-movementTrace ON

# unity gain, omni-directional antennas
# set up the antennas to be centered in the node and 1.5 meters above it
Antenna/OmniAntenna set X_ 0
Antenna/OmniAntenna set Y_ 0
Antenna/OmniAntenna set Z_ 1.5
Antenna/OmniAntenna set Gt_ 1.0
Antenna/OmniAntenna set Gr_ 1.0

# Initialize the SharedMedia interface with parameters to make
# it work like the 914MHz Lucent WaveLAN DSSS radio interface
Phy/WirelessPhy set CPThresh_ 10.0
Phy/WirelessPhy set CSThresh_ 1.559e-11
Phy/WirelessPhy set RXThresh_ 3.652e-10 ;#250m
Phy/WirelessPhy set Rb_ 2*1e6
Phy/WirelessPhy set Pt_ 0.2818
Phy/WirelessPhy set freq_ 914e+6
Phy/WirelessPhy set L_ 1.0





$ns node-config -adhocRouting $val(rp) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-channelType $val(chan) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace OFF \
-movementTrace ON

for {set i 0} {$i < $val(nn) } { incr i } {
set node_($i) [$ns node]
}





set udp [new Agent/UDP]
$ns attach-agent $node_(0) $udp

set cbr [new Application/Traffic/CBR]
$cbr set packetSize_ 1024
$cbr set interval_ 0.1
$cbr attach-agent $udp

set null [new Agent/Null]
$ns attach-agent $node_(1) $null

$ns connect $udp $null
$ns at 2.0 "$cbr start"
$ns at 10.0 "$cbr stop"

$ns at 2.0 "$ns trace-annotate \"Sender sends the data to the receiver through the selected router which is attacker\""
$ns at 2.1 "$ns trace-annotate \"Attacker 3 and 8 forms wormhole\""


set udp [new Agent/UDP]
$ns attach-agent $node_(1) $udp

set cbr [new Application/Traffic/CBR]
$cbr set packetSize_ 1024
$cbr set interval_ 0.1
$cbr attach-agent $udp

set null [new Agent/Null]
$ns attach-agent $node_(3) $null

$ns connect $udp $null
$ns at 3.0 "$cbr start"
$ns at 10.0 "$cbr stop"
$ns at 3.0 "$ns trace-annotate \"Attacker forwards the data to Attacker 8 which does not forward the data to receiver\""
Reply
#10
sir can u please provide me with ns2 code for wormhole attack simulation, too?? i need for my thesis ...
my email is azimiyaser[at]yahoo.com
Reply
#11
hi
I need source code wormhole attack in ns2 for wsn with tcl.
please help me....
my email : mi_sokut[at]yahoo.com
Reply
#12
To get full information or details of sample ns2 codes for wormhole attack simulation please have a look on the pages

http://studentbank.in/report-sample-ns2-...#pid173275

if you again feel trouble on sample ns2 codes for wormhole attack simulation please reply in that page and ask specific fields in sample ns2 codes for wormhole attack simulation
Reply
#13

sir can u please SEND me ns2 code for wormhole attack simulation,

my email is nedawp[at]gmail.com

(29-07-2016, 08:12 PM)Guest Wrote: sir can u SEND me ns2 code for wormhole attack simulation,

my email is nedawp[at]gmail.com
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: code for wormhole attack in manet in ns2, simulation project sample, blackhole attack in ns2, wormhole attack matlabenance management, implementing wormhole through tcl file in ns2, wormhole attack ppt, antnet on ns2 2 35,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
Sad matlab simulation aodv source code newone 2 1,424 19-05-2017, 03:04 PM
Last Post: jaseela123d
Sad wormhole attack is implemented in ns2 at the network layer 13 4,502 05-05-2017, 01:42 PM
Last Post: neeraj.kuntal90
  ns2 projects for wormhole attack detection with source code free download 8 6,357 15-04-2017, 04:31 PM
Last Post: Guest
  ns2 source code free download broadcast message 1 980 15-04-2017, 02:42 PM
Last Post: jaseela123d
  ant colony optimization ns2 code 1 956 15-04-2017, 01:27 PM
Last Post: jaseela123d
  sinkhole aodv implementation code in ns2 1 890 10-04-2017, 04:25 PM
Last Post: jaseela123d
  ppt of simulation of power system stability by upfc 1 841 07-04-2017, 04:13 PM
Last Post: jaseela123d
  vhdl codes for voting machine 1 896 05-04-2017, 04:39 PM
Last Post: jaseela123d
  how to steal cell c airtime codes in south africa 1 1,009 05-04-2017, 04:32 PM
Last Post: jaseela123d
Tongue how to steal cell c airtime codes in south africa and dats bundles on cell c sim 1 1,148 05-04-2017, 04:06 PM
Last Post: jaseela123d

Forum Jump: