surajpatilworld blogspot com

Upload: regragui

Post on 05-Jul-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/16/2019 Surajpatilworld Blogspot Com

    1/8

    surajpatilworld

    Thursday, 19 February 2015

     Adding a malicious node in NS2 in AODV Protocol

     Adding a malicious node is ns2 using aodv protocol. The node which is declared as malicious will

    simply drop the router packet (DROP_RTR_ROUTE_LOOP).

    Two files have to be modified.

    1. aodv.h

    2. aodv.cc

    aodv.h file changes

    Declare a boolean variable malicious as shown below in the protected scope in the class AODV

    bool malicious;

    aodv.cc file changes

    1. Initialize the malicious varible with a value "false". Declare it inside the constructor as shown

    below

     AODV::AODV(nsaddr_t id):Agent(PT_AODV)...

    {

    .......

    malicious = false;

    }

    2. Add the following statement to the aodv.cc file in the "if(argc==2)" statment.

    if(strcmp(argv[1], "malicious") == 0) {

      malicious = true;  return TCL_OK;

    }

    3. Implement the behavior of the malicious node by setting the following code in the

    rt_resolve(Packet *p) function. The malicious node will simply drop the packet as indicated below.

    if(malicious==true)

    {

    drop(p,DROP_RTR_ROUTE_LOOP);

    }

    Once done, recompile ns2 as given below

    Open Terminal -> Go to ~ns-2.35/ directory and type the command make to compile

    $ cd /home/pradeep/ns-allinone-2.35/ns-2.35/

    $ make clean

    $ make # it will take time to compile

    $ sudo make install

    Once the compilation is done, Check the malicious behavior using the Tcl Script by setting any

    one node as malicious node. The command to set the malicious node is

    $ns at 0.0 "[$n(1) set ragent_] malicious"

    The variable referred for node2 is n1 (set n(1) [$ns node])

    you can disable the packet dropping by adding # before above line

    #$ns at 0.0 "[$n(1) set ragent_] malicious"

    aodv.tcl file 

    suraj patil 

    Follow 105

    View my complete profile

    About Me

    ▼ 2015 (6)

    ▼ February (5)

    awk scripts for analysis of trace files inns2

    Step by step installation of ns-2.34 on

    ubuntu 14.... Adding a malicious node in NS2 in

     AODV Protocol A...

    how to clone protocol in ns2

    How to install multiple ns2 versions onsame machi...

    ► January (1)

    Blog Archive

    0   More Next Blog» Create Blog   Sign In

    converted by Web2PDFConvert.com

    http://surajpatilworld.blogspot.in/2015/02/awk-scripts-for-analysis-of-trace-files.htmlhttp://surajpatilworld.blogspot.in/http://surajpatilworld.blogspot.in/http://www.web2pdfconvert.com/?ref=PDFhttp://www.web2pdfconvert.com/?ref=PDFhttp://surajpatilworld.blogspot.in/2015_01_01_archive.htmlhttp://void%280%29/http://surajpatilworld.blogspot.in/2015/02/how-to-install-multiple-ns2-versions-on.htmlhttp://surajpatilworld.blogspot.in/2015/02/how-to-clone-protocol-in-ns2.htmlhttp://surajpatilworld.blogspot.in/2015/02/step-by-step-installation-of-ns-234-on.htmlhttp://surajpatilworld.blogspot.in/2015/02/awk-scripts-for-analysis-of-trace-files.htmlhttp://surajpatilworld.blogspot.in/2015_02_01_archive.htmlhttp://void%280%29/http://surajpatilworld.blogspot.in/search?updated-min=2015-01-01T00:00:00-08:00&updated-max=2016-01-01T00:00:00-08:00&max-results=6http://void%280%29/https://plus.google.com/112337833401620179822https://plus.google.com/112337833401620179822http://surajpatilworld.blogspot.in/

  • 8/16/2019 Surajpatilworld Blogspot Com

    2/8

    #======================================================================

    # Define options

    #======================================================================

     set val(chan) Channel/WirelessChannel ;# channel type

     set val(prop) Propagation/TwoRayGround ;# radio-propagation model

     set val(ant) Antenna/OmniAntenna ;# Antenna type

     set val(ll) LL ;# Link layer type

     set val(ifq) Queue/DropTail/PriQueue ;# Interface queue type

     set val(ifqlen) 50 ;# max packet in ifq

     set val(netif) Phy/WirelessPhy ;# network interface type

     set val(mac) Mac/802_11 ;# MAC type set val(nn) 6 ;# number of mobilenodes

     set val(rp) AODV ;# routing protocol

     set val(x) 800

     set val(y) 800

    set ns [new Simulator]

    #ns-random 0

    set f [open out.tr w]

    $ns trace-all $f 

    set namtrace [open out.nam w]

    $ns namtrace-all-wireless $namtrace $val(x) $val(y)

    set topo [new Topography]$topo load_flatgrid 800 800

    create-god $val(nn)

    set chan_1 [new $val(chan)]

    set chan_2 [new $val(chan)]

    set chan_3 [new $val(chan)]

    set chan_4 [new $val(chan)]

    set chan_5 [new $val(chan)]

    set chan_6 [new $val(chan)]

    # CONFIGURE AND CREATE 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 ON \

      -movementTrace OFF \

      -channel $chan_1

    proc finish {} {  global ns namtrace

      $ns flush-trace

      close $namtrace

    exec nam -r 5m out.nam &

      exit 0

    }

    # define color index

    $ns color 0 blue

    $ns color 1 red

    $ns color 2 chocolate

    $ns color 3 red

    $ns color 4 brown

    $ns color 5 tan

    $ns color 6 gold

    $ns color 7 black

     

    set n(0) [$ns node]

    $ns at 0.0 "$n(0) color blue"

    $n(0) color "0"

    $n(0) shape "circle"

    set n(1) [$ns node]

    converted by Web2PDFConvert.com

    http://www.web2pdfconvert.com/?ref=PDFhttp://www.web2pdfconvert.com/?ref=PDF

  • 8/16/2019 Surajpatilworld Blogspot Com

    3/8

    $ns at 0.0 "$n(1) color red"

    $n(1) color "blue"

    $n(1) shape "circle"

    set n(2) [$ns node]

    $n(2) color "tan"

    $n(2) shape "circle"

    set n(3) [$ns node]

    $n(3) color "red"

    $n(3) shape "circle"

    set n(4) [$ns node]

    $n(4) color "tan"

    $n(4) shape "circle"

    set n(5) [$ns node]$ns at 0.0 "$n(5) color blue"

    $n(5) color "red"

    $n(5) shape "circle"

    for {set i 0} {$i < $val(nn)} {incr i} {

      $ns initial_node_pos $n($i) 30+i*100

    }

    #$ns at 0.0 "[$n(1) set ragent_] malicious"

    $ns at 0.0 "$n(0) setdest 100.0 100.0 3000.0"

    $ns at 0.0 "$n(1) setdest 200.0 200.0 3000.0"

    $ns at 0.0 "$n(2) setdest 300.0 200.0 3000.0"

    $ns at 0.0 "$n(3) setdest 400.0 300.0 3000.0"

    $ns at 0.0 "$n(4) setdest 500.0 300.0 3000.0"$ns at 0.0 "$n(5) setdest 600.0 400.0 3000.0"

    # CONFIGURE AND SET UP A FLOW

    set sink0 [new Agent/LossMonitor]

    set sink1 [new Agent/LossMonitor]

    set sink2 [new Agent/LossMonitor]

    set sink3 [new Agent/LossMonitor]

    set sink4 [new Agent/LossMonitor]

    set sink5 [new Agent/LossMonitor]

    $ns attach-agent $n(0) $sink0

    $ns attach-agent $n(1) $sink1

    $ns attach-agent $n(2) $sink2

    $ns attach-agent $n(3) $sink3

    $ns attach-agent $n(4) $sink4$ns attach-agent $n(5) $sink5

    #$ns attach-agent $sink2 $sink3

    set tcp0 [new Agent/TCP]

    $ns attach-agent $n(0) $tcp0

    set tcp1 [new Agent/TCP]

    $ns attach-agent $n(1) $tcp1

    set tcp2 [new Agent/TCP]

    $ns attach-agent $n(2) $tcp2

    set tcp3 [new Agent/TCP]

    $ns attach-agent $n(3) $tcp3

    set tcp4 [new Agent/TCP]

    $ns attach-agent $n(4) $tcp4

    set tcp5 [new Agent/TCP]

    $ns attach-agent $n(5) $tcp5

    proc attach-CBR-traffic { node sink size interval } {

      #Get an instance of the simulator 

      set ns [Simulator instance]

      #Create a CBR agent and attach it to the node

      set cbr [new Agent/CBR]

      $ns attach-agent $node $cbr 

      $cbr set packetSize_ $size

      $cbr set interval_ $interval

      #Attach CBR source to sink;

      $ns connect $cbr $sink

      return $cbr 

      }

    set cbr0 [attach-CBR-traffic $n(0) $sink5 1000 .030]

    $ns at 0.5 "$cbr0 start"

    $ns at 5.5 "finish"

    puts "Start of simulation.."

    $ns run

    converted by Web2PDFConvert.com

    http://www.web2pdfconvert.com/?ref=PDFhttp://www.web2pdfconvert.com/?ref=PDF

  • 8/16/2019 Surajpatilworld Blogspot Com

    4/8

    Posted by suraj patil at03:25

    Labels: blackhole attack in aodv routing protocol, blackhole attack in ns2, malicious node in aodv protocol

    For video tutorial

    https://www.youtube.com/watch?v=ca-yFicgDZs

    thank you!

    Recommend this on G oogle

    Replies

    Reply

    34 comments:

    Deepalakshhmi sridharan 1 March 2015 at 03:26

    i use the above code but is not working 4 me.pls help asap.this is so urgenti get the following error num_nodes is set 6INITIALIZE THE LIST xListHeadns: _o44 malicious:(_o44 cmd line 1)invoked from within"_o44 cmd malicious"invoked from within"catch "$self cmd $args" ret"invoked from within"if [catch "$self cmd $args" ret] {set cls [$self info class]global errorInfoset savedInfo $errorInfoerror "error when calling class $cls: $args" $..."(procedure "_o44" line 2)(SplitObject unknown line 2)invoked from within"_o44 malicious"

    Reply

    Abdullah Mukhtar  15 April 2015 at 05:02

    i have also facing these type of error... if anyone have solution to these type of error plz help us..,,,,plz share ur code for this specific email [email protected]

    suraj patil 15 April 2015 at 05:35

    Refer thishttps://www.youtube.com/watch?v=ca-yFicgDZs

    Abdullah Mukhtar  16 April 2015 at 02:48

    Abdullah Mukhtar  16 April 2015 at 02:49

    can you please solve my problem to access remotely my pc ....if you have time to dothat...it humble request to you,,,...because i watched you video but can"t remove it.....

    suraj patil 16 April 2015 at 03:23

    ok.Will tell you.

    suraj patil 1 March 2015 at 21:29

    the above code has been tested by me and its working. Just follow the steps exactly givenabove. I have provided a video tutorial also for that. I hope itll help you.

    Reply

    Mandeep singh 29 March 2015 at 06:14hey,can you please help me in adding malicious node in PUMA multicast routing protocol.i'll bereally thankful to you.

    Reply

    John Carter  9 April 2015 at 00:00

    converted by Web2PDFConvert.com

    http://www.web2pdfconvert.com/?ref=PDFhttp://www.web2pdfconvert.com/?ref=PDFhttp://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1428562811923#c7383081150847032625https://www.blogger.com/profile/04748293294555322958http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1427634866664#c5029543539467627413https://www.blogger.com/profile/04020436210927348438http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1425274164201#c8465705049592323806https://www.blogger.com/profile/07877187898190350090http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1429179797867#c9182501372448163901https://www.blogger.com/profile/07877187898190350090http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1429177785213#c5144385035342422438https://www.blogger.com/profile/06381138411906330917http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1429177683425#c893914392845457627https://www.blogger.com/profile/06381138411906330917http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1429101356722#c9078991442486356756https://www.blogger.com/profile/07877187898190350090http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1429099369213#c2506171367075786932https://www.blogger.com/profile/06381138411906330917http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1425209212660#c630957207216983367https://www.blogger.com/profile/02764494458567417606http://surajpatilworld.blogspot.in/search/label/malicious%20node%20in%20aodv%20protocolhttp://surajpatilworld.blogspot.in/search/label/blackhole%20attack%20in%20ns2http://surajpatilworld.blogspot.in/search/label/blackhole%20attack%20in%20aodv%20routing%20protocolhttps://www.blogger.com/share-post.g?blogID=6283681206659048116&postID=1112549000176639418&target=pinteresthttps://www.blogger.com/share-post.g?blogID=6283681206659048116&postID=1112549000176639418&target=facebookhttps://www.blogger.com/share-post.g?blogID=6283681206659048116&postID=1112549000176639418&target=twitterhttps://www.blogger.com/share-post.g?blogID=6283681206659048116&postID=1112549000176639418&target=bloghttps://www.blogger.com/share-post.g?blogID=6283681206659048116&postID=1112549000176639418&target=emailhttps://plus.google.com/112337833401620179822https://www.youtube.com/watch?v=ca-yFicgDZs

  • 8/16/2019 Surajpatilworld Blogspot Com

    5/8

    Replies

    Reply

    Replies

    Reply

    Replies

    Nice post dear. I like it Omni ceiling mount antenna  & gps antenna manufacturers  & 4Gantenna manufacturers

    Reply

    Diego Rojas 23 September 2015 at 15:48

    How about a nice day ..

    I could tell if it's possible to clone the SAODV protocol in ns2, it's for my thesis I wouldappreciate if you can help me

    greetings from Ecuador 

    Reply

    suraj patil 15 November 2015 at 06:35

    Their is a another post in my blog related to protocol cloning. Refer that blog.

     john harris 13 October 2015 at 23:20

    Your blog is really helps for my search and amazingly it was on my searching criteria.. Thanks alot.

    ceiling mount antenna & das antenna manufacturer 

    Reply

    varsha 29 October 2015 at 00:14

    Hello suraj,i am M.E. student and need to implement node authentication of Wireless sensor using ECDSAalgorithm... i ahve done coding for key generation, exchange signature generation anddverification using ECC ,, can you please help me how to use same c++ code for ns2? and alsoabout tcl scripts .. writing and calling etc

     Awaiting for earliest reply!!!

    Thanks

    Varsha

    Reply

    suraj patil 15 November 2015 at 06:33

    Refer my video tutorials. It'll help you.

    V Dharman 30 October 2015 at 06:35

    hello suraj,i am working aodv in adhoc adding malicious node in aodv.cc and aodv.h file chages after makethe command is error occur its no target specified is comming what is that error sir pls help me

    Reply

    Miscellaneous videos 30 October 2015 at 07:24

    Reply

    Miscellaneous videos 30 October 2015 at 07:26

    Here you used aodv protocol.On which layer you implemented that, how should I know that?Help please?

    Reply

    suraj patil 15 November 2015 at 06:32

    It's routing layer attack.

    converted by Web2PDFConvert.com

    http://www.web2pdfconvert.com/?ref=PDFhttp://www.web2pdfconvert.com/?ref=PDFhttp://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1447597931783#c8360016256523658722https://www.blogger.com/profile/07877187898190350090http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1446215199728#c1873769905344729786https://www.blogger.com/profile/16829219760956599407http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1446215083537#c2937175182874734709https://www.blogger.com/profile/16829219760956599407http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1446212118428#c2194968958179970242https://www.blogger.com/profile/06929139002575027422http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1447598025734#c7101646012261362485https://www.blogger.com/profile/07877187898190350090http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1446102855904#c8516212976769332818https://www.blogger.com/profile/15607459897245944523http://www.tesswave.com/das-antenna/http://www.tesswave.com/ceiling-mount-antenna/http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1444803658940#c700198117909151676https://www.blogger.com/profile/10526122229062643255http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1447598142068#c8879292567381455140https://www.blogger.com/profile/07877187898190350090http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1443048491656#c3081437203288847898https://www.blogger.com/profile/14582397230906606560http://www.tesswave.com/http://www.tesswave.com/category/gps-antennas.htmlhttp://www.tesswave.com/products/broadband-antennas_800-2500-mhz-omni-ceiling-mount-antennas_sub.html

  • 8/16/2019 Surajpatilworld Blogspot Com

    6/8

    Reply

    Replies

    Reply

    V Dharman 4 November 2015 at 04:19

    hello suraj sir i am dharman studying in M.e -cse my project is detection and prevention of grayhole attack in manet using aodv routing protocols...i can add malicious node in aodv.cc aodv.hfile after im try to do make cmnd but no use ..and i try to make camnd use i get make****.notarget to specified make..make cleanmakemake depend

    make installabove mention the line give my terminal i get only for error..../configure i will run means its working ...what is the that problem sir ...after that i give ns % getpercetage symbols s ir its sucessfully ns2 is installed my machine....its very urget for my project pls help me i am struck this step

    Reply

    V Dharman 12 November 2015 at 02:36

    sir i m Dharman v please provide this error solution of this problem ...

    Reply

    V Dharman 15 November 2015 at 05:33

    sir i m dharman sir above the code is executed but not do packet dropping sir...Reply

    V Dharman 15 November 2015 at 06:11

    dharman@dharman-HP-15-Notebook-PC:~/ns-allinone-2.35/ns-2.35/aodv$ ns grayattack.tclnum_nodes is set 6INITIALIZE THE LIST xListHeadusing backward compatible Agent/CBR; use Application/Traffic/CBR insteadStart of simulation..ns: malicious": invalid command name "malicious""while executing"malicious""what is that error sir pls help me and gcc -O2 -p ipe -Wl,--export-dynamic tclAppInit.o -L/home/dharman/ns-allinone-2.35/tcl8.5.10/unix -ltcl8.5 -ldl -lieee -lm \-Wl,-rpath,/home/dharman/ns-allinone-2.35/lib -o tclsh

    tcl8.5.10 make succeeded.Installing libtcl8.5.a to /home/dharman/ns-allinone-2.35/lib/Installing tclsh as /home/dharman/ns-allinone-2.35/bin/tclsh8.5Installing tclConfig.sh to /home/dharman/ns-allinone-2.35/lib/Installing libtclstub8.5.a to /home/dharman/ns-allinone-2.35/lib/Installing message catalogsCreating msgserror deleting "/home/dharman/ns-allinone-2.35/lib/tcl8.5/msgs/eu.msg": not owner while executing"file delete -force -- $d2"(procedure "copyDir" line 5)invoked from within"copyDir [file normalize [lindex $argv 0]] [file normalize [lindex $argv 1]]"(file "/home/dharman/ns-allinone-2.35/tcl8.5.10/unix/../tools/installData.tcl" line 50)make: *** [install-msgs] Error 1tcl8.5.10 installation failed.Tcl is not part of the ns project. Please see www.Scriptics.com

    to see if they have a fix for your platform.pls help me what this error sir 

    Reply

    suraj patil 15 November 2015 at 06:31

    Refer video tutorial. The link is given at the end.

    V Dharman 15 November 2015 at 06:34

    above mention error is ./install i will give i m getting this error sir please provide above mentionthe problem....

    Reply

    Smartboy33 19 November 2015 at 00:39

    I am trying to modify AODV routing protocol using NS 2.35. I have made some changes to the

    converted by Web2PDFConvert.com

    http://www.web2pdfconvert.com/?ref=PDFhttp://www.web2pdfconvert.com/?ref=PDFhttp://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1447922381654#c9064908090098434779https://www.blogger.com/profile/11163516032036965416http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1447598093482#c541195495184691088https://www.blogger.com/profile/06929139002575027422http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1447597865351#c2726443878584734709https://www.blogger.com/profile/07877187898190350090http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1447596673476#c8194042384819165479https://www.blogger.com/profile/06929139002575027422http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1447594435747#c1374551930953179861https://www.blogger.com/profile/06929139002575027422http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1447324570406#c6208510412251036868https://www.blogger.com/profile/06929139002575027422http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1446639540135#c7425480304991043819https://www.blogger.com/profile/06929139002575027422

  • 8/16/2019 Surajpatilworld Blogspot Com

    7/8

    Replies

    Reply

    files aodv.cc and aodv.h. Now, to apply these changes I have run a **make** command insidens-allinone-2.35/ns-2.35 folder and getting the following error message:

    In file included from aodv/aodv_logs.cc:31:0:./aodv/aodv.h:53:18: fatal error: list.h: No such file or directory#include^compilation terminated.make: *** [aodv/aodv_logs.o] Error 1

    How will I solve this?

    Reply

    Mona Sayed 4 December 2015 at 05:47

    I changed the type of cache of DSR from mobicache to linkcache and then compiledns2.35 . it gives me the following error:dsr/linkcache .cc: fatal error: list.h: no such file or directory.Please if you find a solution send it to me : [email protected] have you got any suggestions to solve this error?please help me . Thanks in advance

    V Dharman 23 November 2015 at 05:49

    hi suraj sir i am tired to change that error please sir what is that errorcompilation terminated ..make:****no target specified make...

    Reply

    Aziz aydın 29 November 2015 at 07:36

    hi suraj I want to change the malicious node.how can I do.can you help me?example

    $ns at 0.5 "$cbr0 start"$ns at 3.0 "$cbr0 stop"$ns at 3.5 "$cbr0 start"$ns at 0.0 "[$n(1) set ragent_] malicious2"$ns at 0.0 "[$n(3) set ragent_] malicious"$ns at 0.0 "$n(3) color gold"$ns at 5.5 "finish"

    Reply

    V Dharman 3 December 2015 at 04:11

    Sir, I have run this code with no error but i am not getting the packets dropped or i couldn'tvisualize any change in the event field in trace file. Please help me with this

    Reply

    V Dharman 3 December 2015 at 04:12

    I have changed both files..add malicious code in tcl file.still not getting proper result i.e node isnot ableto droping the packets

    Reply

    V Dharman 3 December 2015 at 04:15

    i check whether out .tr trace file is generated comes on drooped packet .but i could not visible topacket drop.i check whether awk is packet drooped result is =0 what is my problem .

    Reply

    V Dharman 5 December 2015 at 05:34

    sir its coming to error in ns error in free() invalid pointer :0*0000000029c508 *** aborted (coredumbed)what is that problem

    Reply

    Azeez Muhammed 24 January 2016 at 12:07

    Greeting Suraj, thanks for your blog Sir. Pls I urgently need ReverseAODV tcl file and Jellyfishcode for my project. I will be glad if you can kindly assist to get these. Thanks in advance.

    Reply

    converted by Web2PDFConvert.com

    http://www.web2pdfconvert.com/?ref=PDFhttp://www.web2pdfconvert.com/?ref=PDFhttp://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1453666023306#c8583368931411777258https://www.blogger.com/profile/16452002139077390271http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1449322463745#c6873385108909927044https://www.blogger.com/profile/06929139002575027422http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1449144957911#c7095168937433180301https://www.blogger.com/profile/06929139002575027422http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1449144766414#c6970493289964770396https://www.blogger.com/profile/06929139002575027422http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1449144672645#c7887106948429886433https://www.blogger.com/profile/06929139002575027422http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1448811368981#c3574458072672041345https://www.blogger.com/profile/12248708959053492207http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1448286547958#c6865534229345377356https://www.blogger.com/profile/06929139002575027422http://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1449236837363#c7967721169759247954https://www.blogger.com/profile/02990749920252220287

  • 8/16/2019 Surajpatilworld Blogspot Com

    8/8

    Newer Post Older PostHome

    Subscribe to: Post Comments (Atom)

    Ravi Kumar Singh 29 April 2016 at 09:38

    if(strcmp(argv[1], "malicious""?") == 0) {malicious = true;return TCL_OK;}

    One more parameter to be added at ?

    Reply

    Simple template. Powered byBlogger .

    http://www.web2pdfconvert.com/?ref=PDFhttp://www.web2pdfconvert.com/?ref=PDFhttps://www.blogger.com/http://surajpatilworld.blogspot.com/feeds/1112549000176639418/comments/defaulthttp://surajpatilworld.blogspot.in/http://surajpatilworld.blogspot.in/2015/02/how-to-clone-protocol-in-ns2.htmlhttp://surajpatilworld.blogspot.in/2015/02/step-by-step-installation-of-ns-234-on.htmlhttp://surajpatilworld.blogspot.com/2015/02/adding-malicious-node-in-ns2-in-aodv.html?showComment=1461947936940#c3876016596027411431https://www.blogger.com/profile/13121125173655582333