Add new protocol to the ns-2

Add New Protocol
Modified folders: ns-2/apps/X.cc, X.h , ns-2/common/packet.h, ns-2/tcl/lib/ns-default.tcl, ns-packet.tcl

1.Copied X.cc and X.h as ping.cc and ping.h and we pasted them under ns-allin-one/ns-2/apps.
2.Defined X packet type in packet.h
enum packet_t
….
PT_X,
// insert new packet types here
PT_NTYPE // This MUST be the LAST one
};
class p_info {
public:
p_info() {
….
name_[PT_X]= “x”;
name_[PT_NTYPE]= “undefined”;
}
static bool data_packet(packet_t type) {
return (
….
(type) == PT_HDLC || \
(type) == PT_X \
);
#define DATA_PACKET(type) (
….
(type) == PT_SCTP_APP1 || \
(type) == PT_X \
)
3.Defined default value of X agent in ns-default.tcl
Agent/X set packet_size 51

4.Defined new packet type in ns-packet.tcl.
foreach prot {
….
# Other:
….
X
}
5.Wrote “x.o” in Makefile
apps/ping.o apps/x.o
6.Went to the directory where is the ns2, run “make” command to configure the ns-2

Advertisements

349 thoughts on “Add new protocol to the ns-2

      1. I’m trying to implement pre-congestion notification in ns2, I would really appreciate ur help!
        Thanks alot!
        Best regards

      2. I’m trying to implement pre-congestion notification in ns2, I would really appreciate ur help!
        Thanks alot!
        Best regards

      3. hi… i am new to ns2.. i want to implement a new algorithm of AIMD congestion contrrol.. how to implement my algorithm can u plese help me.. thanx

      4. Hello,
        I’m try to implement malicious node in DSDV Routing Protocol. Problem arises in dsdv.h dsdv.cc, where append the malicious code in this two files. Thank U…

      5. hii i am also proposing a new congestion control algorithm in wsn. can u send me the code for setting congestion notification? i am taking queue length as the paramter. plz help me . its urgent . plz

      6. Hello Sir
        I am working on a project. In which i have to make an MPLS network in NS2. I have made the MPLS network. But in the next step i have to detect the congestion and then reroute in the next shortest path. Can you please help me with the NS2 code. Best Regards

      7. Hi Dear I am shimelis. i am doing on a project of enhancing TCP performance in MANET. I need ELFN source code for ns2.34 simulator. My submission date is approaching soon. please help me in locating the source code. here is my email: sh_csit@yahoo.com. Thank you

    1. Hi..i’m also trying to implement congestion notification in ns2..please help me how to add the congestion notification in ns2..thank you in advance for your help..
      Best regards

  1. please can u let me know some suggestions if i want to modify the existing DSR protocol for cognitive radio cognitive network in ns-2.any help me would be highly greatful

    1. Hi Barry,

      you should check the procedure on my blog… procedure is same ..
      if it is not really helpful give more information about what you want exactly

      1. Sir,
        I am also doing a project on cognitive radio networks for that I need to create my own protocol. Please help me with that.

      2. Hi,
        I am adding new protocol which is giving problem in accessing offset variable

        speed/speed_packet.h:50: undefined reference to `hdr_speed::offset_’
        collect2: error: ld returned 1 exit status
        make: *** [ns] Error 1

        I have created a new class mac-802_11_speed.cc and speed-wireless-phy.cc as well

        I am really stuck up at this problem. I have tried to download libneoclassic , but I am not sure how to download it.
        Any help in this regards would be really appreciated, will help me to move forward.

        Regards,
        Neetika

  2. dear Barry
    Hi
    I’m trying to attach a new transport agent to my ns2.28 (It’s RCRT on WSN)
    I wrote my RCRTAgent and RCRTSink agents, and and added needed changes to ns files (cmu-trace,packet.h,ns-defaults).
    but when i want to make ns, i get following error:

    trace/cmu-trace.o: In function `hdr_rcrt_sink_pkt::access(Packet const*)’:
    cmu-trace.cc:(.text._ZN17hdr_rcrt_sink_pkt6accessEPK6Packet[hdr_rcrt_sink_pkt::access(Packet const*)]+0x7): undefined reference to `hdr_rcrt_sink_pkt::offset_’
    trace/cmu-trace.o: In function `hdr_rcrt_pkt::access(Packet const*)’:
    cmu-trace.cc:(.text._ZN12hdr_rcrt_pkt6accessEPK6Packet[hdr_rcrt_pkt::access(Packet const*)]+0x7): undefined reference to `hdr_rcrt_pkt::offset_’
    collect2: ld returned 1 exit status
    make: *** [ns] Error 1

    I defined “int hdr_rcrt_pkt::offset_” and “int hdr_rcrt_sink_pkt::offset_” in my rcrt_sink.cc and rcrt.cc. I have so little time.
    can you help me! please!

    with thanks: Fahimeh

    1. # ======================================================================
      # 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 ;# link layer type
      set val(ant) Antenna/OmniAntenna ;# antenna model
      set val(ifqlen) 50 ;# max packet in ifq
      set val(nn) 1 ;# number of mobilenodes
      set val(rp) AODV ;# routing protocol
      set val(x) 500 ;# X dimension of the topography in meters
      set val(y) 500 ;# Y dimension of the topography in meters
      set val(time) 200.0 ;# Simulation time in seconds

      proc finish {} {
      global ns_ tracefile namfile
      $ns_ flush-trace
      close $tracefile
      close $namfile
      exit 0
      }

      # ======================================================================
      # Main Program
      # ======================================================================

      #
      # Initialize Global Variables
      #
      set ns_ [new Simulator]
      set tracefile [open out.tr w]
      $ns_ use-newtrace
      $ns_ trace-all $tracefile

      set namfile [open out.nam w]
      $ns_ namtrace-all-wireless $namfile $val(x) $val(y)

      # set up topography object
      set topo [new Topography]

      $topo load_flatgrid $val(x) $val(y)

      #
      # Create God
      #
      create-god $val(nn)

      ##

      set chan [new $val(chan)]

      # configure node

      $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) \
      -topoInstance $topo \
      -agentTrace ON \
      -routerTrace ON \
      -macTrace ON \
      -movementTrace ON \
      -channel $chan

      for {set i 0} {$i < $val(nn) } {incr i} {
      set node_($i) [$ns_ node]
      $node_($i) random-motion 0 ;# disable random motion
      $ns_ initial_node_pos $node_($i) 20
      }

      # Provide initial (X,Y, for now Z=0) co-ordinates for mobilenodes
      # and produce some simple node movements
      $node_(0) set X_ 102
      $node_(0) set Y_ 344
      $node_(0) set Z_ 0.0

      # Node movement
      $ns_ at 2.000 "$node_(0) setdest 235.3334 285.8288 5.0406"

      $ns_ at 7.871 "$node_(0) setdest 65.4610 49.3440 3.0000"

      $ns_ at 27.247 "$node_(0) setdest 322.7737 367.4713 9.9105"

      $ns_ at 130.514 "$node_(0) setdest 425.6389 184.7761 4.0000"

      $ns_ at 136.470 "$node_(0) setdest 141.0864 229.6432 3.4591"

      # Tell nodes when the simulation ends
      for {set i 0} {$i < $val(nn) } {incr i} {
      $ns_ at $val(time) "$node_($i) reset";
      }
      $ns_ at $val(time) "finish"
      $ns_ at [expr $val(time) + 0.01] "puts \"NS EXITING…\"; $ns_ halt"

      puts "Starting Simulation…"
      $ns_ run

      take this is one of my code

      1. i’m student i’m beginner use NS-2.After i ran this code
        the windown terminal reply:

        huy@ubuntu:~/aodv$ ns vd1aodv.tcl
        num_nodes is set 1
        INITIALIZE THE LIST xListHead
        Starting Simulation…
        SORTING LISTS …DONE!

        and it has no nam or…..

        help me !!!
        thank you

      2. In oorder to see nam you have to write a script at the end of your tcl code…
        and run the nam file you have to command ‘nam ..’ on the temrinal

      3. Hello,
        I would like to take your help. I want to implement cryptographic protocols for WSN by using NS2.
        But i dont know , from where to start.
        Can u give me some suggessions !!
        Thanks and Regards
        Manmay

    2. # wrls1.tcl
      # A 3-node example for ad-hoc simulation with DSDV

      # 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 ;# link layer type
      set val(ant) Antenna/OmniAntenna ;# antenna model
      set val(ifqlen) 50 ;# max packet in ifq
      set val(nn) 3 ;# number of mobilenodes
      set val(rp) DSDV ;# routing protocol
      set val(x) 3500 ;# X dimension of topography
      set val(y) 3500 ;# Y dimension of topography
      set val(stop) 150 ;# time of simulation end

      set ns [new Simulator]
      set tracefd [open simple.tr w]
      set windowVsTime2 [open win.tr w]
      set namtrace [open nonsense.nam w]

      $ns use-newtrace
      $ns trace-all $tracefd
      $ns namtrace-all-wireless $namtrace $val(x) $val(y)

      # set up topography object
      set topo [new Topography]

      $topo load_flatgrid $val(x) $val(y)

      create-god $val(nn)

      #
      # Create nn mobilenodes [$val(nn)] and attach them to the channel.
      #

      # 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

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

      # Provide initial location of mobilenodes

      $node_(0) set X_ -242.466363
      $node_(0) set Y_ -310.223093
      $node_(0) set Z_ 0

      $ns at 10.0 "$node_(0) setdest 250.0 250.0 3.0"
      $ns at 110.0 "$node_(0) setdest 480.0 300.0 5.0"

      $node_(1) set X_ 490.0
      $node_(1) set Y_ 285.0
      $node_(1) set Z_ 0.0
      $ns at 15.0 "$node_(1) setdest 45.0 285.0 5.0"

      $node_(2) set X_ 150.0
      $node_(2) set Y_ 240.0
      $node_(2) set Z_ 0.0

      # Generation of movements

      # Set a TCP connection between node_(0) and node_(1)
      set tcp [new Agent/TCP/Newreno]
      $tcp set class_ 2
      set sink [new Agent/TCPSink]
      $ns attach-agent $node_(0) $tcp
      $ns attach-agent $node_(1) $sink
      $ns connect $tcp $sink
      set ftp [new Application/FTP]
      $ftp attach-agent $tcp
      $ns at 10.0 "$ftp start"

      # Printing the window size
      proc plotWindow {tcpSource file} {
      global ns
      set time 0.01
      set now [$ns now]
      set cwnd [$tcpSource set cwnd_]
      puts $file "$now $cwnd"
      $ns at [expr $now+$time] "plotWindow $tcpSource $file" }
      $ns at 10.1 "plotWindow $tcp $windowVsTime2"

      # Define node initial position in nam
      for {set i 0} {$i < $val(nn)} { incr i } {
      # 30 defines the node size for nam
      $ns initial_node_pos $node_($i) 30
      }

      # Telling nodes when the simulation ends
      for {set i 0} {$i < $val(nn) } { incr i } {
      $ns at $val(stop) "$node_($i) reset";
      }

      # ending nam and the simulation
      $ns at $val(stop) "$ns nam-end-wireless $val(stop)"
      $ns at $val(stop) "stop"
      $ns at 150.01 "puts \"end simulation\" ; $ns halt"
      proc stop {} {
      global ns tracefd namtrace
      $ns flush-trace
      close $tracefd
      close $namtrace
      }

      $ns run

      this is another example
      enjoy

      1. And the windown of terminal reply:

        huy@ubuntu:~/aodv$ ns vd2aodv.tcl
        num_nodes is set 3
        warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
        INITIALIZE THE LIST xListHead
        channel.cc:sendUp – Calc highestAntennaZ_ and distCST_
        highestAntennaZ_ = 1.5, distCST_ = 550.0
        SORTING LISTS …DONE!
        end simulation

        and it has nothing

        thank you

  3. sir,
    i am doing M.Tech project based on ns-2 ,i want to create new context-aware adpative protocol (car) .i do not know how to do? please help me

    1. sir i m also doing ns2 based project but not completed yet….
      so how i can find project help please reply through email or give me your contact no.
      9229116722 this is mine

  4. Hi,I’m a student doing the thesis with NS2 fot the simulation of a protocol.
    I’m very afraid because I cannot add a protocol,but I don’t know why.
    I use the ns-allinone v 2.34,the last one.
    To add a simple protocol,I use the SAME source code in /ns-2.34/apps/ping.h and ping.cc,but changed the name also in the internal function to be another protocol with another name,but doing the same actions(this cause not to make the mistakes).Ok.
    When I recompile NS2 i don’t have error,but when I run it have error like:
    *** glibc detected *** ./input: realloc(): invalid next size:

    I think that,the error is during the modification of file like packet.h,makefile and the others.Because on the internet there is not a guide that teach me how to add a protocol with 2.34,because the source code has changed and maybe I have done some mistakes during this time.
    Can you explain me how to add a protcol under 2.34?

    I have tried the same with 2.32 and seems to work,but when ns run a tcl file,failed :/

    I hope for a great help,so…bye bye to be graduate!
    Thanks!

  5. I am a student working on a project. My project involves simulation of various protocols (AODV, DSR, DSDV) under various scenarios and comparing them with that of a new protocol called ABRP (AD HOC BACK UP NODE SETUP ROUTING PROTOCOL). I am done with the 1st part but now I need to modify DSR or AODV to implement ABRP.

    1. In ABRP, the destination waits for a additional time Tc after receiving the request for route setup from sender.
    2. In this small Tc time, destination route discover packets from some more routes( if present). they serve as backup routes.
    3.In the event of a link failure, a backup route is automatically selected.

    As far as I understand, I need to change that Tc parameter in AODV or DSR protocol. but I have no idea how to do. No help from my guide coz he has absolutely no idea of NS2. I am using UBUNTU 9.10.

    please help. My project submission on 9th of may.
    thank you.

    1. hi rohit
      can u pls let me know how to do the simulation of DSR protocol and let me know further if u got any idea of altering the DSR according to new protocol?can u pls help me out?

      1. sir,
        i am doing M.Tech project based on ns-2 ,i want to create new secure data multipath routing protocol between tcp/udp and network layers .i do not know how to do? please help me

  6. hi
    i written a source code(pipd.cc & pipd.h) for new queue PI_PD(like other queue RED,PI).

    but could not able to compile in ns2.please tell how to use my new queue PI_PD like any other queue in ns2.

    thanks

  7. Hi, rohit. i am doing my project on ABRP n AODV. its kinda of comparison. could you please mail the simulation process of both the protocols and also the scripts of it. It would be really grateful.

    thanks & regards
    Radha Bocha

    1. hi,radha bocha this is rias from tamilnadu can you give me an idea or code to implement AODV with BACKUPNODES..thanks kind of you…

  8. hi, I am looking some help here. I am trying to design a new transport protocol and simulate by ns2.34. I am not sure what the exactly procedure I should follow. anyone has experience on the field, please give me some examples or links.
    I have looked at some examples on line, most of them are adding routing protocols in ns2. Is the same if you add a transport protocol in ns2? what the changes I have to make in order to run the simulation for my own protocol?
    please give me some help!
    Thanks advance.

    kevin

  9. I am M Tech final year student. My project is IH-AODV which is better than AODV in NS2 simulator .i m not implement this project. I have IEEE base paper bt don’t have any code. so can u send me full code which would be run.please help me my project submission date 25th august.

    1. hello debraj , i m also an M.tech final year student. in my project i have to modify AODV . if you have done with your project than can u please give that code of new or modified AODV i.e. IH-AODV.
      please help me my project submission is in feburary.
      my email address is rohilla.kirti@gmail.com

      1. hi
        I am a newbie to NS2 and I am trying to implement a packet marking
        algorithm in NS2. So inorder to implement packet marking by a node in the
        simulation do i have to write the code in the tcl script or change in the
        compilation files ?? Well Basically as i want to implement the algorithm to
        all the nodes based on the satisfying condition it should mark the packet
        by inserting the node id into the packet header, so how can i do this ??

  10. Sir,

    I am working on modifying aodv protocol for my project. In that i have to send certain control packet by encapsulating. So i think i have to have separate encapsulating packet to be created.
    Now my doubt is since it is a new header i have to create a new agent?
    Is it possible to have two agents in a single aodv code.

    Please help me to sort out this. This is very urgent for my project.

    Amar

  11. Hi, every one.

    i want to work in ns2. and build new protocol. can any one help me to do so, step by step, i m beginner in NS2. Waiting reply . . . 😦

  12. Hey,

    I need to implement a geographic routing protocol in ns2.34. Does anyone here have any experience in this field ? I need help in implementing GPSR too.

    Please help me in creating a new protocol in ns2.34.

    Thanks a lot.

    1. hi, sir
      i have a same problem. i need to implement a geographic routing protocol in ns 2.34, such as GLS (Grid Location Services) but the protocol just compatible with ns 2.1b.
      can you help me sir, how must i do for run the GLS protocol in ns 2.34. thank you for ur attention.

      best regards,

    2. Hi Jyoti

      I am also trying to implement GPSR routing protocol in ns-2.34. I was wondering if you ever managed to do it. I have been trying to do this for three weeks now and have gotten nowhere.

      Websites I used to download the code from is

      http://www.cs.ucl.ac.uk/staff/b.karp/gpsr/gpsr.html

      I was unable to install older versions of network simulator such as ns-2.29. I am using Ubuntu 10.10

      Plz I will really appreciate any help you can give. Deadline for my thesis is fast approaching.

      Many Thanks in advance

      Priyank

  13. i am a student of bs. i need tcl script of c-mac protocol and syn-mac protocol and kindly tell me how 2 add these protocols in crcn(extened version of ns-2.31)simulator.

    with best regards

  14. when i am adding new protocol ;make all do not give error; on runing tcl script following errors came
    help me solve this problem

    (_o3 cmd line 1)
    invoked from within
    “_o3 cmd create-aodv-agent _o245”
    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 “_o3” line 2)
    (SplitObject unknown line 2)
    invoked from within
    “$self create-aodv-agent $node”
    (“AODV” 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”
    }
    blackholeAODV {
    set ragent […”
    (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(nn)} {$i < [expr {$val(nn)+$val(adv)}]} { incr i } {
    set node_($i) [$ns node]
    $node_($i) set X_ [ expr {$val(x) * rand()} ]
    …"
    (file "wl1.tcl" line 165)

    1. Hi David, i’m working the same thing”blackhole attack”, and i have the same pbm, my you help me please, how did you found the solution

  15. i have modify tcp.cc. I compile it by using command make clean, make . Then object file tcp.o is created in ns2.34 folder.But when i run a tcl script(using Agent/TcpAgent) the old tcp.cc code is executed modified code is not Executed which i have done. pls. Anybody Help me..

  16. Hi,
    i am going to simulate new algorithm for routing protocol for wireless sensor network. How can i simulate it in ns-2? can i have to be modified some of the header files for it in ns-2 or it will work as it is?
    please help me .
    Thanks in advance

  17. Dear sir,

    i am doing a project in mobile computing.

    I need to write mobile agents for MANETs in ns2 ,can you help me or give me some details about how to implement mobile agent under ns-2?

    Thank you in advance

    amine

  18. Hi

    I am working on cross layer between physical layer (parameter BER) to network layer for finding the path that satisfy the BER. Do anybody have idea of calculation of BER using QPSK and send it to netowrk layer. If you have an idea please share with me.

    Thanking in advance!!!

  19. hi…i am doing my project in cognitive radio. i am creating cognitive radio network in ns2. i don’t know how to write ns2 code for cognitive radio because i am new to ns2. please kindly help me by giving me some sample programs for ns2.

  20. hello sir
    can you give me codes for any new routing protocol.in my project work i am comparing AODV and DSR.and i need to make a new routing protocol.plzz help me in my project. i need it urgently.
    my mail id is rohilla.kirti@gmail.com

  21. sir,
    i m a student.i m doing project on WSN.I need to do the project using Ns2.I hav installed Ns2.30.I tried to simulate AODV protocol but i couldn’t get the nam and trace file output.

    1. Hii sahoo,
      i hv same problem as u have.. when i simulate dsr protocol it successfully run but it couldn’t give me nam. but in data file it give nam data file but movements of nam is not created..
      if u have solution then plz give me..

  22. How to detect a node before congestion with the help of buffer in a node in ns2 tcl codings. I did’t get answer for this.pls

  23. Hilalkaratoy,

    Hi, I’m interested about comparing performance between multicast algorithms. I need to run MAODV and ODMRP in the latest version of ns2 (2.34). I haven’t found the way to get it. Do you know if it is possible to add MAODV or / and ODMRP?
    I hope you can answer, thank you very much.

  24. Hi,
    I tried to add a new routing protocol with the procedure given in the website,
    http://elmurod.net/wps/?p=157.
    The object file was created. But on running the tcl script, i get the following error :

    num_nodes is set 100

    (_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 0} {$i < $val(nn) } { incr i } {
    set mnode_($i) [$ns node]
    }"
    (file "wfrp_802_15_4.tcl" line 74)

    Could you please help me to rectify this problem.

  25. hello…
    i m working with WSN routing…nw i want to add one module to my base node…when i run simulation before that this module must be run at base node and that module result will be sent to other nodes…how can i do this?

  26. Dear,

    Im on the process of developing a new RWA protocol in optical wdm networks. Is it possible to add my algorithm in ns2 and get the simulated result?
    can you please give me the code of optical link which has 40 channels (insted of the duple channel in a ordinary network)

  27. Dear,

    im working on optical wdm networks. i hve designed a protol which i have to simulate in ns2. how can i do that?
    is it possible to have a link with 40 channels which sends data from one node to another througth all the 40 channels at the same time insted of duplex link?

  28. Hi,
    I need to implement SAR and Watchdog protocols. But i have no idea about NS2. Can you please suggest me how to implement.

  29. Dear Hilalkaratoy, I’ve added a new protocol to ns-2.34. My problem is that I always get “undefined” in my trace file. Where I should have the name of my protocol (something like PROTO as defined in packet.h) in the trace file.
    And I have the cmu-trace.cc modified, and when I got “undefined” where I should have PROTO. Here is some entries from my trace file.

    s 0.000000000 _0_ RTR — 0 undefined 64 [0 0 0 0] ——- [0:255
    -1:255 1 0] [qosr 0x1 0 [0 0] 5.000000]
    r 0.502047103 _5_ RTR — 0 undefined 64 [0 ffffffff 1 800] ——-
    [1:255 -1:255 1 0] [qosr 0x2 0 [1 0] 5.000000]

    Can you explain why this happens? Where did I go wrong and how did I
    get undefined?

  30. i m working on geographic routing protocol for my m.tech thesis. i searched lots of papers but didnt get valuable information.really i m frustrated now coz of lots of tensions for same.pls help me n provide me the source code and also tutorial how to run it.

    Thanks

    1. i m working on geographic routing protocol for my m.tech thesis. i searched lots of papers but didnt get valuable information.really i m frustrated now coz of lots of tensions for same.pls help me n provide me the source code and also tutorial how to run it.

  31. hi i am doing project on NS2 i tried running one protocol but during make i found segmentation fault in /ns2.33/common/ptypes2tcl which is executable file i cant edit can you plz help me out this???

  32. Hi…….

    I am working on NS-2.29 installed on Windows under cygwin … My aim is to implement a new routing protocol for this simulator in wireless networks… I refered the “NS-HOW TO” manual to implement… Everything’s working fine till i execute make… But when i run the TCL script its giving the error as “WRONG NODE ROUTING AGENT ! “… This message is present in “tcl/lib/ns-lib.tcl” file… This error message is a default statement in “switch” where a new routing agent is created for our protocol… Inspite of commenting the error message its giving the same message…When i execute the file “ns-lib..tcl” using the command “source ns-lib.tcl” its giving the error as “unexpected token )” in line 49…I tried lot of things but its not workin… Could you tell me the way to overcome this problem ?? and please post me the whole “ns-lib.tcl” source code…
    Can you also help me with a tcl script in which i change the type of routing protocol to check if the new routing protocol i have added to NS2 have been successfully integrated in NS2 for use after running the commands “./configure” , “make clean”, “make depend” and then “make”
    Thank you in advance!!!!!!!!

  33. hi.I m begeener in NS2 simulation .I have to integrate a new protocol named direct link protocol, one of the QOS mecanismehem’s, i wrotte the programs dlp.CCP and dlp.h but i don’t know how to integrate and test them in NS2 i only know that i have to include them in mac802_11.h and mac802_11.cc but how to do it ? i don’t know could you please help me ?

  34. hi..i want to add new field in the aodv packet field as trust value..trust value increases as successive communication increases…we called is as TAODV can anyone give me the source code for that…its urgent..i hope somebody help me..

  35. sir,
    i am doing M.Tech project based on ns-2 and working on the project in OLSR.Run tcl script than error please use -channel as shown in tcl/ex/wireless-mitf.tcl wrong node routing agent…plese help me solve out this error everyone…and send OLSR tcl file….as soon as possible to help me..

  36. sir,
    i am doing M.Tech project based on ns-2 and working on the project in MSAODV and design new routing protocol so please help me how implement and modify aodv folder/aodv files…plese help me in this project…

  37. Hi,
    I am a student and i am doing project on congestion control and load balancing in Wireless mesh network using NS2. Here i am using DSR protocol to control the congestion and load balancing. So please can you tell me how to do the congestion control in DSR protocol.Please help me.

    Thanks

  38. I am working in ns2 on black hole attack. I want to disable the node in my TCL script. can you send me command to disable the node in tcl

  39. Hi David,i’m currently prepare my project, i’m working the same thing’adding a blackhoel and selfishness’ in AODV protocol and i have the same problem, my you help me please please

    Regards

  40. Hey Sir,I executed this wireless-gpsr.tcl in the NS2.34 with Ubuntu 9.10 but it does not run due to some agent issues…

    ———————————–

    $ns wireless-gpsr.tcl
    invalid command name “Agent/GPSR”
    while executing
    “Agent/GPSR set planar_type_ 1 ”
    (file “wireless-gpsr.tcl” line 113)

    ————————————-

    i try to marked this code,but it valid.

    how can i solve it,or do you have any suggestion

    Thanks Eric

  41. Hi,
    We want to include Qos routing algorithm QRCCLB in Wireless mesh network using NS2. Can you help how to proceed.

    Thank you

  42. i am a student i am doing project in Mutlipath AODV . i need multi path AODV NS2 source code .any body knows help me .
    by
    M.Geetha

  43. can you help me,please.
    i do simulation by ns2.3,my problem it,s how i know number of hop , reputation of node and bondwidth. i need know this three thourput because of use it in me result.please reply to me. i wait ur reple
    saly
    thanks a lot

  44. i am working on Route Cache updation algorithm to avoid Route cahche strome problem in DSR protocol for VANET with Braodcast strom . I need excecution sequence of DSR c++ code, so that i will modify code as per my requirement.

  45. sir,
    i am implementing TCP performance over wireless MIMO channels with ARQ. sir i have implemented ARQ but i am struggling to implement space time block code…can anyone give me the tcl script for space time block code.its very urgent….pls
    thank you
    bibhu sharma

  46. plz can you provide complete tcl scripts to generate byzantine attacks esp blackhole and wormhole in ns2…plz mail them to me

  47. Dear SIr
    I have tried the tutorial for “implementing new protocol in ns2.27” I have tried it in ns2.34
    Everything worked well
    all compilations done but when i tried to run .TCL it has generated an errror like the one given below
    ****glibc detected***** free() invalid next etc.etc.
    I am not able to understand the problem
    It will be great help if you give me some idea about the error and how to rectify the error
    Ill be obliged
    Anticipating positive reply
    Thank You in Advance

  48. set ns [new Simulator]

    #the destinations; declared first
    for {set i 0} {$i < 2} {incr i} {
    set node_(d$i) [$ns node]
    }

    #the routers
    for {set i 0} {$i < 4} {incr i} {
    set node_(r$i) [$ns node]
    $node_(r$i) add-pushback-agent
    }

    #the sources
    for {set i 0} {$i < 4} {incr i} {
    set node_(s$i) [$ns node]
    set pushback($i) [$node_(s$i) add-pushback-agent]
    }

    $ns pushback-duplex-link $node_(s0) $node_(r2) 10Mb 2ms
    #$ns duplex-link $node_(s0) $node_(r2) 10Mb 2ms DropTail
    $ns pushback-duplex-link $node_(s1) $node_(r2) 10Mb 3ms
    #$ns duplex-link $node_(s1) $node_(r3) 10Mb 3ms DropTail
    $ns pushback-duplex-link $node_(s2) $node_(r3) 10Mb 3ms
    $ns pushback-duplex-link $node_(s3) $node_(r3) 10Mb 3ms
    $ns pushback-duplex-link $node_(r0) $node_(r1) 10Mb 10ms
    $ns pushback-duplex-link $node_(r2) $node_(r0) 10Mb 10ms
    $ns pushback-duplex-link $node_(r3) $node_(r0) 10Mb 10ms
    #
    $ns pushback-simplex-link $node_(r1) $node_(d0) 10Mb 2ms
    $ns simplex-link $node_(d0) $node_(r1) 10Mb 2ms DropTail
    #$ns duplex-link $node_(d0) $node_(r1) 10Mb 2ms DropTail
    #
    $ns pushback-simplex-link $node_(r1) $node_(d1) 10Mb 2ms
    $ns simplex-link $node_(d1) $node_(r1) 10Mb 2ms DropTail
    #$ns duplex-link $node_(d1) $node_(r1) 10Mb 2ms DropTail

    $ns queue-limit $node_(r0) $node_(r1) 100
    $ns queue-limit $node_(r1) $node_(r0) 100

    $ns run

    this is a simple pushback protocol simulation script using pushback agent and pushback-link
    this script is giving floating point exception ..can any body tell me how can i solve this

  49. HI

    i am doing my project on sip ,can u please help how to create a ping command between two nodes.ex:let us assume that n0 is one UA sends data to n1 how it would ping for n0 by sending a message .And can u please help how to create a new packet for my ex as mentioned above.

  50. I want to know that is there any difference in designing new protocol for layer 2 or routing protocol in ns2 ?

    I know how to add a routing protocol and I have added one protocol in NS2 but I want to know about adding new protocl for layer 2 to wotk with wireless Lan.

    Please guide me.

  51. I want to know that is there any difference in designing new protocol for layer 2 or routing protocol in ns2 ?I know how to add a routing protocol and I have added one protocol in NS2 but I want to know about adding new protocl for layer 2 to wotk with wireless Lan.

    Please guide me.

    1. hello ruzbahan, i want know how you add new routing protocol in NS-2 ,because i fond existing protocol form other ns-2 package but i have no idea how to add this protocol. plz give me step by step for this issues.
      TQ

  52. hi
    i am doing project in cognitive radio sensor networks for my m.tech course.i dont knw how to do it in ns2.can u help me to get some similar codes for the same

  53. In mac-simple.cc where is best place to copy the packets and send these copied packets to the other nodes. Kinda getting segmentation fault . and the receiver is dropping all the packets. So any suggestion will really be helpful. Thank a lot in advance.

  54. Hi,

    I did some changes to the existing aodv.cc, aodv.h, and mac. After compiling my code, got the following error:

    make: *** No rule to make target ‘VERSION’, needed by ‘gen/version.c’ . Stop.

    Can you tell me where i am doing wrong….i am using ns-2.34 in the opensuse linux environment.

    thanks

  55. Hi i am doing a project on ns2 performance based wireless lan can any one help me to find some examples using tcl scripton mobiles nodes. how to create the movements for the nodes and calculate the shortest path

  56. Hi iam final year student of M-TECh.I am doing my project on “performance Analysis of Optimized MAC protocol for Wireless sensor network” In my project iam comparing my protocol i.e. Optimized MAC protocol with SMAC.TMAC.DSMAC protocol.I want simulation codes /.tcl script file for three protocols.

  57. Hello Hilalkaratoy,
    I am using ns 2.34 on ubuntu 11.10 and I followed the same procedure of adding a new protocol as you have given. My folder ns-allinone-2.34 resides in my home directory.

    when I run the make command I get the following response:
    make: *** No targets specified and no makefile found. Stop.

    I googled and found this reason:
    …means that you didn’t provide any targets to be built on the command line, and make couldn’t find any makefiles to read in.

    I changed directory to ns-allinone-2.34 and run the command again so that it finds the makefile. I got the same message again.

    I then further got into directory ns-2.34 and run make command and got this message:
    Makefile:291: *** commands commence before first target. Stop.

    Can you suggest where the problem is?

    Thanks,
    Sam

    1. I dont remember precisely but it was under my home directory… Did u read carefully the paths that is given on my post?

  58. Hi,

    I have one problem to set the wireless node down.
    can anyone help me with this problem?
    I really need your help, Thank You very much.

    Regards
    Loon

  59. hi sir,
    i am doing my project in ns2, i need georouting for wireless sensor
    network give some details about how to implement it?

    thanking you in advance

  60. I JUST WANT TO KNOW IF I WANT TO ADD PARAMETERS WHCH ARE NOT PRESENT IN NS2 FOR NODE CONFIGURATION i.e I WANT TO EXPLICITLY TAKE SOME PARAMETERS.SO FOR THIS I HAVE TO CREATE NEW NODE FILE IN NS2(i.e node.cc) OR I CAN ADD THOSE PARAMETERS THERE.

    1. Add them there. Please look at how to add new protocol subtitle. Beause there we add new parameters to the existing file

    1. U have to be more specific, and as i repeat lots of time just go and check how i add new protocol , it is all the same for additional works on ns2

  61. hi , i trying to implment the energy efficient and Qos based multipath routing protocols in wireless sensor network by comparing the two protocol MCMP and EQSR protocol…….. can u give me idea….. tell some suggestion to do in NS2 simulator…

    with best regard

  62. how transmission power can be varied by the node to communicate for example if it i near bywith less power and if far away more power kindly reply how to write the code in ns2

    1. If u r still looking for that i will provide the way to you… But as far as i remember u can control the energy via changong the predefined parameter in ns2

  63. sir,
    Am doing final year m.tech in anna university…
    i would like to know the steps to attach a c++ code to tcl…am not able to understand

    1. Just open the c++ file and add your method there. Of course you have to do changes in the header file and compile before u run ur code. And please follow how i made when i add new protocol( which is just a new method(s))

  64. Dear sir,
    I need a information about detecting a malicious node in a AODV protocol….so that any nodes should not send data to that malicious node.sir give me one implementation thats enough(watchdog or blackhole).but i need where all modificaion is required in AODV code.if you have the modified code means plz help me.the code should run in ns-2

  65. Hi,
    I am working on NS2. I am a beginer and i have to know how to implement RSA algorithm for cryptography. I have full working code of the algo in C.

    The knowledge of how to approach this problem will be very helpful. We have to produce a NAM file for the same.
    Please help!!!!

  66. In my project, I am planning to implement dual queue.. I created one by modifying the in-built priority queue.. To create another queue, I need to create another object and make some more changes.. can somebody help me with tat..
    I also need the coding for sending back pressure messages, once congestion is detected.

  67. I am currently developing a resource congestion control protocol in ns2 for sensor networks. Can you help me with a sample congestion control protocol. May be ESRT or CODA. any suggestion is appreciated. Thank you

  68. I am currently developing a resource congestion control protocol in ns2 for sensor networks. Can you help me with a sample congestion control protocol. any suggestion is appreciated. Thank you

  69. sir pls help me .i’m doing my m etch project on wireless multimedia sensor network.pls tell me from which place i’ll get some examples abt these.

  70. Respected Sir,

    Myself Pravin C.Pandirkar and am doing master`s thesis from IIT-Chicago. I am currently working on ant-colony algorithm
    I want to implement Ant-colony algorithm in NS2.

    Can you please guide me.

    My email id is pandirkar.pravin@gmail.com

  71. Hello everybody

    I am working on VANETs routing protocols and i am getting problem while simulating GPSR. if anyone know that how to implement GPSR in ns2 than plz share with mw.

    Thanks in advance.

    1. hi sir, i am also looking out for energy aware routing protocol for DSR …pls help me. i am just fresher to NS-2 and i dont know how to start with plz plz help me out with this

  72. can i patch a c++ source code which is based on 2.27 in 2.34?i m getting some problem while patching it in ns2.34..pls help me..

  73. Hi

    I am working on the implementation of new protocol for MANET which is cluster based. Can u please provide some code in ns 2 that will help in the implementation.

    Thank you.

  74. Hi
    I am doing my final year project which designing a protocol based on AOMDV. Link disjoint paths are not considered and hello msg has to be piggybacked with bandwidth information in AOMDV.I am new to this. Please sugest me sites and tutorial to gain knowledge. Also tell me on which c++ files of AOMDV i have to modify for my project.

  75. hi
    i am doing M.E doing my project in SAODV protocol i would like to implement ECC method instead RSA, is it possible to implement? if so can u give coding for SAODV using ECC.

  76. Sir,I need help from u for ns2.
    There are different types of Mac types are ther in ns2 wireless simulation.
    I can use Mac/802-11 and Mac/TDMA..
    But i cannot use Mac/Csma/Ca or Mac/Csma/Cd in my tcl script,when i try to use it raise an error as “unknown command”.
    I am looking forward for your help……….

  77. Sir,I need help from u for ns2.
    There are different types of Mac types are ther in ns2 wireless simulation.
    I can use Mac/802-11 and Mac/TDMA..
    But i cannot use Mac/Csma/Ca or Mac/Csma/Cd in my tcl script,when i try to use it raise an error as “unknown command”.
    I am looking forward for your help……….
    Please sir kindly guide me…

  78. hi barry,
    I am a student working on ns2. I am doing the project about QoS in MANET’S using latency and throughput. I have a code regarding single path in DSR and i want change it in to multipath. I made several changes but i am not achieving. so, i need your help in achieving the MP-DSR.

  79. hello sir..
    this is riasudheen doing my M.E final year.now i am working with ns2 to implement AODV with backup nodes for reliable route recovery so please give me an suitable idea or code to implement thank you sir…kind of you…rias..

  80. Hi, I am doing my final year project. My topic is AntNet RSLR a proposed routing protocol for manets. Please if you hav any idea share with me. I hav to compare the performance metrics of AntNet RSLR with AODV, DSR and AntNet.

  81. Hi..Sir
    I am doing a project on “SECURE NEIGHBOR POSITION DISCOVERY IN VANET”.
    in this protocol one node will send hello packet to all its neighbor and stores time instant .then neighbor will reply to it about its position .our aim is to find out the neighbor who is lying .depending upon stored timestamp we have to find out misbehaving node.
    please can u suggest any tcl script for it
    Thanking you..
    with warm Regards
    Samir Shaikh

    1. hiii…i am also working on getting neighbour position in vanet i dont know how to implement source code..please send me ur source code

  82. hi friends
    hello my friends
    please someone help me I have a graduation project on simulation and rtsp protocols in ns2 sip …. I am already a beginner in this software and I have not much time please help me in implementation of this project
    thanks friends please answers me

  83. Hi

    i am doing the project on implementation of GAF protocol for energy efficient emergency communication and i want to compare the results of AODV and AODV+GAF
    in order to prove that AODV+GAF is more efficient. Do anybody have the idea that how to attach the GAF TO NS2
    Thanking you in advance.

  84. i need to add gaf to the aodv…not getting how to add to the routing protocol aodv to the gaf..please help me

    1. i need to add gaf to the aodv…not getting how to add to the routing protocol aodv to the gaf..please help me

  85. Hi
    please someone help me i have a graduation project on simulation how to add a new protocol in mac of ns2
    please answers me

  86. Hi I Kara, I have made the changes as per your post.
    The make process is successful.
    When I try to write a script with X=MyPing like this

    #Create a simulator object
    set ns [new Simulator]

    #Open a trace file
    set nf [open out.nam w]
    $ns namtrace-all $nf

    #Define a ‘finish’ procedure
    proc finish {} {
    global ns nf
    $ns flush-trace
    close $nf
    exec nam out.nam &
    exit 0
    }

    #Create three nodes
    set n0 [$ns node]
    set n1 [$ns node]
    set n2 [$ns node]

    #Connect the nodes with two links
    $ns duplex-link $n0 $n1 1Mb 10ms DropTail
    $ns duplex-link $n1 $n2 1Mb 10ms DropTail

    #Define a ‘recv’ function for the class ‘Agent/Ping’
    Agent/MyPing instproc recv {from rtt} {
    $self instvar node_
    puts “node [$node_ id] received ping answer from \
    $from with round-trip-time $rtt ms.”
    }

    #Create two ping agents and attach them to the nodes n0 and n2
    set p0 [new Agent/MyPing]
    $ns attach-agent $n0 $p0

    set p1 [new Agent/MyPing]
    $ns attach-agent $n2 $p1

    #Connect the two agents
    $ns connect $p0 $p1

    #Schedule events
    $ns at 0.2 “$p0 send”
    $ns at 0.4 “$p1 send”
    $ns at 0.6 “$p0 send”
    $ns at 0.6 “$p1 send”
    $ns at 1.0 “finish”

    #Run the simulation
    $ns run

    I get an error

    ns:

    : invalid command name “Agent/MyPing”
    while executing
    “Agent/MyPing packet_Size 64”

    Please help me on this

  87. Sir,i’m doin a protocol based on Antnet and i got the patch for that and with static links it is working well but when i try to change to mobile nodes its making errors.can u tell me what changes should i make to support mobility in my protocol

  88. Hi I m doing my ME project on DSR modification in NS2.. I have problem in understanding mobicache.cc file in DSR.. want to modify that.. Please help..

    1. hi mam, i am also looking out for modified DSR routing protocol for MANET …pls help me. i am just fresher to NS-2 and i dont know how to start with plz plz help me out with this and how to integrate it into

  89. Hello Sir, I really need your help with creating and simulating a new ad hoc routing protocol with improvements on DSDV using ns2. All help will be appreciated.
    P.S: I am a novice with C++ but learning @ the moment.
    Thanks

  90. Can any one help in rectifying the following error?
    root@localhost meena]# ns lar.tcl
    num_nodes is set 2
    warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl

    (_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 11)
    (Simulator create-wireless-node line 11)
    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 0} {$i < $val(nn) } {incr i} {
    set node($i) [$ns node]
    $node($i) random-motion 0 ;# disable random motion
    }"
    (file "lar.tcl" line 103)
    [root@localhost meena]#

  91. hello every one I am working on ns2 adding a EECED protocol and now I am getting an error when I trying to simulate this protocol. may you please help me to with advise on what might be the result of this error.

    Code:

    keepwalking@keepwalking-HP-ProBook-4520s:~/ns-allinone-2.35/ns-2.35/eeced$ ns eeced.tcl
    num_nodes is set 64
    Creating mobile nodes…
    INITIALIZE THE LIST xListHead
    Mobile nodes created successfully…
    Setting random positions for nodes…
    Random positions setup complete…
    Setting initial positions for NAM..
    Initial NAM positions setup complete…
    Creating EECED agents and attaching to mobile nodes…
    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    warning: no class variable Agent/EECED::node_role

    see tcl-object.tcl in tclcl for info about this warning.

    EECED agents created and attached successfuly…
    Starting the elector agent…
    Elector agent started…
    Node 0 Broadcast energy request message
    Node 0 has completed sending energy request…
    channel.cc:sendUp – Calc highestAntennaZ_ and distCST_
    highestAntennaZ_ = 1.5, distCST_ = 550.0
    SORTING LISTS …DONE!
    Segmentation fault
    keepwalking@keepwalking-HP-ProBook-4520s:~/ns-allinone-2.35/ns-2.35/eeced$

    1. hello Nathi, I’m also having the same error while implementing “Watchdog” in AODV.
      Error msg:
      “warning: no class variable Agent/AODV::sufix_
      see tcl-object.tcl in tclcl for info about this warning”
      could you tell me how to correct it …… thank you.

  92. r/sir i am facing a problem after patching of blackholeaodv “invalid command -ll Type “please give me any solution .its very urgent for me.

  93. i need help in NS-2 patch of field based routing in wireless mesh network as i wish to optimize the algorithm wit AI.pls provide me the FBR protocol patch for ns-2.

  94. hai ….i need the code for creating four nodes and when the one path get fails the packet wii send another path…plsss help for me……. i need that coding foe wireless

    1. There are plenty ex on the internet about how to create wireless nodes. For the algorithm u need to write a protocol and u can use my iett protocol whic is on the page

  95. Hai..I just wanted to know as to how we can get to know at the sender side if a ack has been received or no..I want to send a SACK packet if the ack has not been received.
    plz reply soon ..

  96. Ok..If I have to add a Sack packet on detecting ack packet drop then how do i trigger this sack packet…
    Badly in need of this…plz help me..

  97. Hi
    I am new to ns2 and doing my final year project in ns2 with base paper “Multihop Overlapping Clustering Algorithm (MOCA) (http://wrc.ejust.edu.eg/papers/globecom06.pdf)”
    and
    I have to apply security with various session key exchange algorithms on the network so formed.
    And do analysis on them.

    i got the code for ns2 n can u tell me how to implement session key exchange algorithms in the network…, if u have any code regarding this it will be more helpfull for me.
    Can you please help. plz…………,

  98. hi
    please someone help me I have a project on simulation and compare tcp variants broadband like tcp- fusion, compound-tcp ralentless tcp… in ns2.31 what are the steps of implementation them…
    i’m beginner in NS2.plz help me..

    1. I think u can just inplement some prototypes for each… In order to do that u can create client and server, and send message to each. Then trace the data transfer and anaykise them that what u expect or not.
      The best way to do that u can use the current tcp protocol and play it around by tracing the data.
      1.create client , who sends request to connect to the server
      2. Create server, who receives the connection request
      3. Create a connection between them
      4. Start communucation
      5. Finish communication
      6. During 3 to 4 collect all data ( trace file)
      7 read the trace file
      In order to do those steps u need to know tcp protocol, how to write a simple tcp connectikn in ns-2 and create and read the trace file
      I can advice u to dind simple tcp ex and run it on ns2

  99. Hi

    i am working in MAODV in ns2.35. I got the following error while am running the code…

    Floating Point Exception (Core dumped)

    Plz anyone help me to sortout this problem……..

    thank you

    1. If u resolved the problem with Floating Point Exception (Core dumped) in MAODV script can u please help me to resolve the issue.

  100. Hi! 🙂 i’m trying to add a new layer between Phy and Mac on 802.15.4 to work like a packet filter , can u help me!? Many thanks.

  101. hello mam I want to implement a load balancing using AODV How can write how to tsrat can u please mail me at my mail id

    thank u

  102. I am a M.Tech student and trying to implement ieee paper(Secure Source Based Loose Synchronisation(SOBAS) for wireless sensor networks)This has three main components Time-Based Key Management,Crypt module and Filtering-Forwarding-Synch Module.Should this also be implemented as a new protocol.
    Please guide me……

  103. hi

    I am currently doing my project in VANET….I am using MOVE and integrating that with ns-2.To add nodes dynamically they mentioned to install trace-patch in ns-2…I am a beginner to ns-2 and i dono where to add and how to add….Pls help me…

  104. Hi
    On creating a new protocol in ns2, I modified the contents of the make file and i entered the command “make depend”. an error appear like this
    Makefile:271: *** commands commence before first target. Stop.

  105. hello i am doing the thesis work on the AODV protocol to make it energy efficient. can any one help me or give me the code for that or EAODV code its urgent.
    my email id :-vinaykalkal89@gmail.com

  106. your posts r gud,
    And i got to know hw to write a tcl coding, and how to configure it in makefile,Priority Queue,library and so on from ur posts
    Can you please tel us about how to create a new protocol’s .cc file .h file

    1. There is a page i created again. The name of the page is within this blog “add new protocol to ns-2” if you go there you will see how to create new protocol. Read the comments and ttry to apply, it was working when i worked on it…
      Good luck

  107. Ya i have already noticed that and i know hoe to configure but im in need to know how to make traffic in TCP connection and i have noticed that you mentioned hoe to ad the protocol but my question is how to make a header file and .cc file

  108. hi sir
    I am M.tech student doing project on co-operative mac protocol design based on legacy ieee 802.11b mac protocol.Can you please suggest how to incorporate multi-rate into single rate 802.11b mac protocol.I will be thankful if you send me the code to mail id: naga.sabi@gmail.com
    Thanks in advance,
    Naga Lakshmi A

  109. hi sir, am B.Estudent in anna university. am doing my project in virtual backbone tree algorithm in wireless sensor networks. am using AODV as my routing protocol. to print the energy of nodes after each packet forward i did some changes in aodv.cc and aodv.h. then i configured by using ./configure command. and then i gave make clean . make depend and then i gave make. but the changes are not reflecting.the make command is telling nothing to be done for all. even the hello statemnt in aodv.cc is not reflecting. how we can overcome this problem? pls suggest me since i have to finsih project soon. eagerly waiting for ur reply. Thanks in advance.

    1. There is an example folder in ns2, first go there and copy the aodv example to ur directory and run it, if that one is not working u did something wrong when u install ns2

  110. Hello every one. I’m B.S student and I have to compare performance of LEACH and some other clustering algorithm. I’ve found LEACH patch on internet and successfully installed it. Could you please help me find other one. Thank you in advance

  111. Hello everyone,
    I am a student doing research in “Cooperative Caching on MANETs”. But, I’m stuck on it. what direcories and files are needed to change to add new parameters (user criteria) to the nodes on MANETs with NS2? Is it doable on NS2? If can, pls kindly share me the ways , hints or sample code. I want to share real user data and own parameters of one node among the nodes on MANETs. how to do it. Any suggestion will be higly appreicated. Plz help me out.

  112. Hi,
    I’m working on NS2 and I need to add the SIP protocol ,but I don’t find the SIP patch .I use ns2.34 version .can some one tell me where can I find it.Plz it’s very urgent
    thanks in advance

  113. hello everyone ,i am final year student ,my project is based on aodv protocol routing .can anybody tell me while sending packet from source to destination by neighbour node how can i see the details information table of each node

  114. Hi Mam,
    I’m working on NS2 2.28 ..trying to implement MAC protocol in wireless sensor network,If u dont mind can you provide me any available MAC protocol in wireless sensor network as i tried alot from my end to implement it but fail to do so.Now i have short span of time to submit my project so its humble request to provide me MAC protocol any like WiseMAC or XMAc etc… Kindly mail me on email id – Sumi.nagah@gmail.com
    Thankyou 🙂

  115. Hi, v r in the need of creating a new protocol… v r b.e students but our project is to creat a new greedy protocol named as LEARN…Already v hav studied about aodv,dsr protocol.. but v need to knw how to creat .h .cc files in ns2 for a greedy routing protocol..plz help us sir/madam…

  116. hello
    i have some question
    could you tell me how can i have cryptography in ns2 ?
    i need RSA for both cryptography and also as DSa

  117. can you help me to do GREEDY ROUTING ALGORITHM WITH ANTI-VOID TRAVERSAL FOR WIRELESS SENSOR NETWORK using ns2….
    I cant find the proposed system (i.e.) GAR PROTOCOL
    Can you please help me for this concerned

  118. using .tcl can you mail me GAR Protocol in tar format using ns2…Please reply

    This is an IEEE paper

    IEEE TRANSACTIONS ON MOBILE COMPUTING, VOL. 8, NO. 7, JULY 2009

    Greedy Routing with Anti-Void Traversal
    for Wireless Sensor Networks
    Wen-Jiunn Liu, Student Member, IEEE, and Kai-Ten Feng, Member, IEEE

  119. hilalkaratoy u mean for each newly agent or protocol added to NS2, all the process are the same as u mentioned in your post?

  120. Hi Mam,
    I want to simulate Black Hole Attack in Wireless AdHoc Networks.
    After making the changes to all the files that you have mentioned, what are the final commands o run in order to compile the code.
    Is it only the make command???
    Or
    1../configure
    2.make clean
    3.make
    4.make install

    Please reply soon… Very urgent :((

    Thanks,
    Kerry

  121. Can help me to have one of the protocols of routing made safe for the integrer in simulator NS2. Because I seek has integrer one of the protocol of routing made safe in the NS2 to be able to work with, Without the integration of the one of these protocols I cannot continue my project. especially the integration of SAODV or ARAN in the NS2. Please if you have a patch or source codes help me. My mail is: djongassy@gmail.com
    Cordially!

  122. Can some one help me to write code for token ring(wireless version) instead of IEEE 802.11?I need it badly for my project.

  123. Hi Hilalkaratoy,
    I am doing my master degree in Information Technology. I am doing a project on clustering of mobile nodes(MANET) using ns2. Head node is selected based on speed of node, degree. I am using a Random Waypoint Mobilty for node movement.
    Can you please help me with some small sample codes of how clustering is implemented in ns2.

    Thank You.

  124. Hi Everyone, i’m trying to upon event send a notification message at Mac Layer on 802.15.4 module at NS 2.35 can u help me with the correct steps to do that!? Many thanks

  125. hi Hilalkaratoy,
    I am doing my masters in ENTC. I am doing project on Multipath routing in MANET. i want to modify AODV protocol. as AODV is an unipath routing protocol i want to make modification that there should be 3 paths in source and destination as main paths and they should transmit data at the same time…
    but i am not getting which files i should modify…
    please guide me…
    thank you..

  126. hi mam im work on black hole attack in ns2.34.I found following error during make command and after make clean command in main directory of ns2.

    g++ -c -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/bannu/Desktop/ns-allinone-2.34/tclcl-1.19 -I/home/bannu/Desktop/ns-allinone-2.34/otcl-1.13 -I/home/bannu/Desktop/ns-allinone-2.34/include -I/home/bannu/Desktop/ns-allinone-2.34/include -I/home/bannu/Desktop/ns-allinone-2.34/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o tools/random.o tools/random.cc
    In file included from tools/random.cc:40:0:
    ./config.h:60:19: fatal error: tclcl.h: No such file or directory
    compilation terminated.
    make: *** [tools/random.o] Error 1

  127. i have this err
    make: *** No rule to make target `apps/Car.o’, needed by `ns’. Stop.
    when i configure NS2 with make
    can some one help me ????

  128. Hi madam
    I am new to ns2 and tcl .
    I am trying to implement infrastructure mode of wireless network using one BSS without any adhoc routing i.e. the nodes must interect through base station only.
    I am not finding any routing protocol to implement it.
    Kindly help me regarding this.

    Thanks

  129. when i try to install ns-2.31 but i saw some errors below:

    /libotcl.a when searching for -lotcl
    /usr/bin/ld: cannot find -lotcl
    collect2: ld returned 1 exit status
    make: *** [ns] Error 1
    Ns make failed!
    —–
    i’m a student and i beginer with ns-2
    please, help me to solve these errors.
    thanks so much

    1. I see that u dont follow the installation guide correctly. With ns2 u also install some other patches. Please read carefully. And after u install and did make dont run make clean then u r gonna delete what u already configure

  130. Hello Hilalkaratoy

    I have implemented AODV protocol in ns2 using tcl script, now i want to implement other protocol using the same environment. Could you please help me about what changes i need to make in AODV tcl file to implement any other protocol. Please help.

    Also could you guide me about how to implement Ant colony algorithm on AODV using tcl file.

    I would be thankful to you for your help.

  131. Hilalkaratoy i write a new ip allocation protocol in MANET named Buddy. I create Buddy.cpp, Buddy.h and Buddy_packet.h
    after run make command, i get some errors for i.e :
    Buddy.h: error: ip.h: No such file or directory

    i use ip.h header file in Buddy.h
    although ip.h is not missing, this error happen.
    is it possible to help me?

  132. Hi
    I need to modify AO protocol for congestion avoidance.. can u give me some idea about the latest approach… Thanks in advance

  133. Hi I want to use a Sensor Agent in ns-2.34 but when I try to include it it gives lot of error is there any config required

  134. Hi, I have implemented blackhole attack in AODV protocol successfully.. Now I want to overcome this blackhole attack by making some modifications in AODV protocol. For that, i want to add a new routing table in the protocol. How can i do it?
    Plz suggest me…

  135. dear hilalkaratoy
    i want to compare two protocols in xgraph . how i do it?for example my aodv tcl code with 50 nods in the ad hoc network is done and i want to compare performance with dsr protocol but i dont know how do it. pls help me,I am new to ns2

    1. Hi Hoora,

      You need to first define somemetrics, I mean you need to define what you r going to compare.
      As you mentioned the performance, and some other metrices….
      In order to compare two protocols you can use the trace files.
      Because trace files can give you an insigt about the nodes and the communication values among them, like how much data, how fast, how secure, and how robust and so.
      In order to compare only the protocols my suggestion is to use the other aspects same,
      Such as the number of nodes and the distance between the nodes. The distance also has an influence on the time!!!!

    2. Hi Hoora,

      Very simple..

      Main.tcl:

      in one procedure you should place below code
      proc finish {} {
      global ns_ namtrace node_ pr tp dd
      $ns_ flush-trace
      close $namtrace
      close $tp
      close $pr
      close $dd
      exec nam -r 5m Nam.nam &
      exec xgraph PDR.xg -t “Packet delivary Ratio” -x “Time” -y “PDR” &
      exec xgraph Throughput.xg -t “Throughput” -x “Time” -y “Kb/s” &
      exec xgraph Drop.xg -t “Drop ratio” -x “Time” -y “loss” -ly 0,100 &
      exec xgraph NodeLife.xg -t “Node Life-Time” -x “Time” -y “Power” &

      exec xgraph PFBA_Drop.xg Drop.xg Cong_Drop.xg -t “PacketLoss Comparison” -x “Time” -y “No. of Drops” &
      exec xgraph PFBA_PDR.xg PDR.xg Cong_PDR.xg -t “PDR Comparison” -ly 0,1 -x “Time” -y “PDR” &
      exec xgraph PFBA_Throughput.xg Throughput.xg Cong_Throughput.xg -t “Throughput Comparison” -x “Time” -y “Kb/s” &
      exec xgraph PFBA_Energy.xg NodeLife.xg Cong_Energy.xg -t “Energy Comparison” -x “Time” -y “Energy” &

      exit 0
      }
      $ns_ at 50.0 “finish”
      puts “Start of simulation..”
      $ns_ run

  136. Hi all, its seems im in big trouble, I am planning to use simulator model for implementing VoIP over CRN (Cognitive radio network), and was looking to download CRCN simulator but as far the homepage of CRCN is not accessible. The error is….
    Not Found

    The requested URL /~ljialian/crcn.zip was not found on this server.

    Apache/2.2.3 (Red Hat) Server at stuweb.ee.mtu.edu Port 80

    what would be the best option for getting CRCN downloaded into NS2, or is it ok if i can do it simply on NS2.

    Thanks

    I am the beginners of Network simulator 2 and trying my best to learn as well.

    Cheeers

    Regards
    Prakash

  137. Hi hilalkaratoy,
    I am doing the NS2 project in which the selective forward, sink hole attacks ve to be detected. How can i put the code? whether in TCL language or C++(protocol)?

    1. Hi Gowdhu,

      Of course you can do changes on the protocols. Just try a simple print in one of the file. Compile the source code in that case ns2 then create an example
      And run the example, confirm that the change u made on the protocol is printed when u run your example where you use the protocol that u modified.
      If you can create a Protocol, you can also change the existing one….

  138. hello!,I like your writing so a lot! percentage we communicate extra about your post on AOL? I require an expert on this area to unravel my problem. Maybe that’s you! Looking forward to peer you.

  139. I am an ME student implementing the anthocnet routing protocol on wireless sensor network
    with real time implementation.how to modify the .cc file of anthocnet in ns2 and also implement iusing tcl scripting

  140. hello sir, i done my project in ns2.my project is only one node acts like mobile base station and collect data from other nodes in the network..I don’t know how i write the protocol for it.please help me…..

  141. plz help me , when m make changes in ns-2.34 for antnet implementation i got errorin make so plz help me to resolve it……… its vry urgent
    queue/priqueue.cc: In member function ‘virtual void PriQueue::recv(Packet*, Handler*)’:
    queue/priqueue.cc:93:22: error: ‘PT_ANT’ cannot appear in a constant-expression
    make: *** [queue/priqueue.o] Error 1
    [root@fedoravm ns-2.34]# make install

  142. hiiiiiiii……….im a student……..doing project on CORMAN: a novel cooperative opportunistic routing in MANET…………i need to implement this protocol…….but i dont know how to implement this………..im trying to make changes with AODV protocol………..please help me how to implement this protocol………….

  143. Hi,
    i want to print transmission energy and reception energy with node ID of whenever packet is sent and receive. I can print the transmission and receive energy whenever this operation is performed in wireless-phy.cc but unable to print the node ID. transmission and reception energy can also be printed from energy-model.cc but still no clue how to print the node ID. I’ll be grateful if anyone can guide how to print node ID in wireless-phy.cc.
    Regards,
    Najma

  144. Hello…..
    I am working the project of black hole attack in AODV protcol.
    I want to know how can I add new packet type in AODV protocol.
    I write alarm packet type in aodv protocol such as Hello packet.
    I declare this packet in aodv_packet.h and then I write the send and receive fun in aodv.h.
    I use by calling this fun in aodv.cc. When I am compiling Ns-2, there is no error.
    But, when I run TCL script, there is error such as Invalid AODV pcket format.
    So, Anybody help me. How can I add alarm packet in aodv protocol??????

  145. Hi Dear,

    I am trying to make my modification on MAC 802.11 protocol, I wrote some drafts of codes

    But I want to ask you, how can I reach to the is_idle() function, which belongs to mac802.11, from the file mac-timers.cc ?

    Also I didn’t find where is the busy() function that counting down?

    Can you help me please?

    Best Regards,

  146. Hi Hilal Karatoy….. i m m.tech student….. doing project using NS2.35….. i want to implement ECN in a wireless network…..want to know the TCL code for this ……i have tried ecn test suits…. but i wanna know the insturction which can be written explicitly in the code and also produce graph of congestion window and throughput…. please help me ……… Thank you

  147. Hello hilalkaratoy,

    I am trying to implement probabilistic routing scheme in ns2 using aodv protocol, please guide me where to start my modifications in aodv protocol sorry for troubling you.

    Many thanks,
    Gopal

  148. I do all steps to clone a new mac protocol but when i do make i have this error: ” No rule to make target “mac / newmac.o” necessary “ns”. Stop.”
    Pleaaaaaaaaase help me.

  149. hi, i m trying to add new module for RTP to existing files in ns2.33, bt i am getting error as follows
    make: * [common/scheduler.o] Error 1
    plzzz can u help me to resolve it
    rplyy fast
    thank you
    Komal

  150. Hello sir,
    I am student. i am trying to implemnt hybrid protocol in NS2 .hybrid is combination of AODV AND GPSR.how to merge these both.If u have any codes please repl me

  151. hi hilal..
    i m a m.tech student.. m first tym doing work on ns2.. my implementation topic is performance analysis of load balancing using on-demand multipath routing protocol. i have installed ns2.35.. now m confused how to start.. can u plz help me in writing tcl code for this..

  152. hi,
    We are wrote the simulation code in tcl and genetic algorithm in c++ separately.we dont know no how to invoke this c++ in tcl code .Please explain in detail about this and to create a make file.will u reply in this following mail id:selvalakshmi256@gmail.com

  153. i am during my research in ant net ns2.33 implementation these line is error

    s: [Simulator instance] get-drop-queue 0 5:
    (_o3 cmd line 1)
    invoked from within
    “_o3 cmd get-drop-queue 0 5”
    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 “_o3” line 2)
    (SplitObject unknown line 2)
    invoked from within
    “[Simulator instance] get-drop-queue 0 5”

    i want submit the thesis pls reply me

  154. Hi
    I’m trying to attach a new transport agent to my ns2.34
    I wrote my WFRPAgent and WFRPSink agents, and and added needed changes to ns files (cmu-trace,packet.h,ns-defaults).
    but when i want to make ns, i get following error:

    trace/cmu-trace.o: In function `hdr_WFRP_sink_pkt::access(Packet const*)’:
    cmu-trace.cc:(.text._ZN17hdr_rcrt_sink_pkt6accessEPK6Packet[hdr_wfrp_sink_pkt::access(Packet const*)]+0×7): undefined reference to `hdr_wfrp_sink_pkt::offset_’
    trace/cmu-trace.o: In function `hdr_wfrp_pkt::access(Packet const*)’:
    cmu-trace.cc:(.text._ZN12hdr_wfrp_pkt6accessEPK6Packet[hdr_wfrp_pkt::access(Packet const*)]+0×7): undefined reference to `hdr_wfrp_pkt::offset_’
    collect2: ld returned 1 exit status
    make: *** [ns] Error 1

    I defined “int hdr_wfrp_pkt::offset_” and “int hdr_wfrp_sink_pkt::offset_” in my wfrp_sink.cc and wfrp.cc. I have so little time.
    can you help me!
    REPLY…..

  155. when i tried to run antnet tcl in script folder I get the following

    messagge:

    ns: [Simulator instance] get-drop-queue 0 5:
    (_o3 cmd line 1)
    invoked from within“_o3 cmd get-drop-queue 0 5″
    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 “_o3″ line 2)
    (SplitObject unknown line 2)
    invoked from within“[Simulator instance] get-drop-queue 0 5″

    can you help me, where is the probelem?

    Pls help mam I want finish my project

  156. In file included from tools/random.cc:40:0:
    ./config.h:60:19: fatal error: tclcl.h: No such file or directory
    compilation terminated.
    make: *** [tools/random.o] Error 1

  157. Dear sir,
    I need a code for multichannel MAC protocol for wireless sensor networks. If it is possible please send me the details for scheduled based mac protocols.

    Thanks and Regards

  158. I am trying to make energy aware routing protocol in DSR protocol to change , so help how i am start my work to change DSR with respect to energy aware pls help me soon.

  159. Hi

    Am Pursuing my Masters in Communication System, 2nd year. I am doing my project in wireless Sensor network using NS2. Currently am analyzing various interfacing queues (Droptail & Priority). Am finding it difficult to shift to other interfacing queues ie sophisticated queue, fair queue, random earlier detection, M/M/1 & M/G/1, Kindly advise me on this.

    Also how to set the parameters (ift) for the smooth functioning of the above mentioned queues. Please do respond in appropriate steps. Looking for your positive revert.

    1. Hi Ram,
      I am Suha, A Master student. I have question for you and hope you can help me. I have to develop a new AQM for wireless. My network is wired to BS then wireless nodes. My question is where should I put my new algorithm in TCL program,like in wired we do the following: “$ns duplex-link $nodes(bs) $nodes(is) 10Mbps 50ms DropTail”, what I have to do in wireless instead of drop tail , should I change the “priqueue” in “ifqType Queue/DropTail/Priqueue” or I have to put it instead of “DSDV DSR TORA AODV”. Hope can see your reply

  160. Sir.
    i am a Mtech student and my project is to compare random walk mobility and levy walk mobility model based on congestion control. How will i implement Random walk model in MANET using Ns2. Can you help by giving the code

  161. Hello,
    I am trying to modify DSR protocol by consider the nodes residual energy to determine the best route.
    the problem here: I can’t find where to attach the residual energy of each node with the Route request packet, and how to extract it when I need at the destination?
    Can you help me with that?
    thank you in advance
    best regards
    Enas

  162. Hi Hilakaratoy.

    While adding a new protocol , everthing worked fine.
    All the object files are getting created.
    But when I runtcl file file following error is shown:

    (_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 0} {$i < $val(nn)} {incr i} {
    set n($i) [$ns node]

    }

    I guess the problem is in tcl/lib/ns-lib.tcl file
    It would be a great help if you can tell how to fix this problem.

    1. @abhishek plz add the particular code to tcl/lib/agent.tcl,lib.tcl,packet.tcl,mobilenode.tcl then make clean and make
      u get error after make plz intimate me

  163. Hi sir, am doing project in wireless sensor network.
    1.how to create cluster and elect cluster head for 50 nodes?
    2.how to calculate energy using data transmission through cluster head?
    3.how aggregation performed in wireless sensor network?
    I don’t know how to implement it in ns2.34 please help me. I am eagerly waiting for your reply.
    email:subburamucep@gmail.com

  164. Dear sir, I am doing project in Wireless Mesh Network. So I need the tcl script for Wireless Mesh Network with Mesh client, mesh router and gateway. please provide me one running TCL Script in ns2.35. Thanks . I am eagerly waiting for your reply.

  165. hello, i am working on VANET and i want to combine the link state routing protocol and Geographic Opportortunistic routing protocol.please any one have a source code for Link state routing protocol and Geographic Opportunistic routing protocol for ns2.35. send me on my mail id: krimpatel10@yahoo.in

  166. i need code for sensing the pressure in sensor node using ns2 program and also how to set the threshold value for the sensor ..

  167. Hi i am doing my prjct in ns2, I want to know about basic ns2,how to add protocol,how to work with ns2….,I dont know where to get these and all so please help me….,its very urgent……..

  168. Dear sir,
    I want implement black hole attack detection and prevention in NS2 for this i want to use AODV protocol .So can u send me what changes i need to make for .cc and .h files and how to perform recompilation and where to place those modified files and tcl files.

  169. hii i am also proposing a new congestion control algorithm in wsn. can u send me the code for setting congestion notification? i am taking queue length as the paramter. plz help me . its urgent . plz

  170. Hi i have implemented my own new routing protocol for my project in ns-2.35 but when I run tcl examples . I keep getting empty tr and nam files. for instance, when i do dave@dave-VPCEB18FD:~$ ns wireless.tcl
    num_nodes is set 50
    warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
    INITIALIZE THE LIST xListHead
    Starting Simulation…
    dave@dave-VPCEB18FD:~$
    what can be the problem ..Thanks

  171. Hi,
    I am working with ns2.35 and trying to implement watchdog on aodv in MANETS with some nodes malicious but i couldnt implement watchdog on this and i couldnt figure out the right way to do it i used watchdog bayesian.patch and also i wana see throuput via xgraph. plz guide.
    Thanks in Advance

  172. I./satellite -I./wpan -o tools/random.o tools/random.cc
    In file included from tools/random.cc:40:0:
    ./config.h:60:19: fatal error: tclcl.h: No such file or directory
    #include
    ^
    compilation terminated.
    make: *** [tools/random.o] Error 1

    hi guys .. am getting this error when i make the edited ns2.35 file ..
    what should i do to get rid of this ??????

  173. Hi Dear all I am shimelis. i am doing on a project of enhancing TCP performance in MANET. I need ELFN source code for ns2.34 simulator. My submission date is approaching soon. please help me in locating the source code. here is my email: sh_csit@yahoo.com. Thank you

  174. Hi sir,
    I’m not familiar with ns-2 but in a situation to do my final year project hence i need your help.My papers deals with colloborative content based watchdog and i wanna know about implementing watchdog in ns2.Another doubt is that does watchdog follows any algorithm?Kindly leave your reply sir.

  175. hello sir
    m trying to modify DSR protocol in ns2.35 as follows
    copied DSR protocol folder in ns2.35 directory and paste it as mdsr
    add following lines in makefile.in present in ns2.35

    mdsr/dsragent.o mdsr/hdr_sr.o mdsr/mobicache.o mdsr/path.o \
    mdsr/requesttable.o mdsr/routecache.o mdsr/add_sr.o \
    mdsr/mdsr_proto.o mdsr/flowstruct.o mdsr/linkcache.o \
    mdsr/simplecache.o mdsr/sr_forwarder.o \

    sir will u please tell me what other changes are required in ns2 files so as to run mdsr in tcl scripts as
    set $val(rp) mdsr

    i read ur article but m not adding new packet still…m just modifing existing protocol
    please response

  176. hi …
    i want to modify AODV so that it can select node based on residual bandwidth and delay in addition to hope count, I am using ns2.35 please help me on how i could do that.

  177. hiii…
    I m working on TCP in VANET. I want to create movements of node using aodv protcol. i have done it also successfully run bt i couldn’t get nam which show the movements of nodes.
    also nam data file is created.
    please solve me my problem.. i m tired to solve this problem..
    if anyone know then tell me my mail-id : alpabarad93@gmail.com

  178. respected sir
    i am a student and doing ME project in ns2 to detecting selfish and malicious node in manet using watchdog method can you help me sir to create a watchdog module in ns2

  179. Hi sir,
    I am a ME student and doing project in ns2. I need to add hybrid protocol consisting of p persistent csma and tdma and in each tdma slot ieee 802.11 dcf. Please help.
    Thank you.

  180. Hi,
    i am working on authentication Protocol for WSN, can you please let me know how to generate certificate using tcl in NS2? certificate has paramters which need to be auto generated.

    Thanks
    Varsha

  181. I am working in ns-2
    i want to detect the level of contention at mac layer (data link layer) and further that level of contention will be passed to transport layer tcp…. so that tcp should react accordingly and decrease the congestion window per rtt if there is high contention…….help me plzzzzzzz

  182. hello sir..I wanted to implement in ns2 this topic “PRIVACY PRESERVING AND TRUTHFUL DETECTION OF PACKET DROPPING ATTACK IN WIRELESS NETWORKING” can u help me to do this project…..mail me at megavasu1@gmail.com

  183. hii i m doing project in energy efficient adaptive forwarding scheme for manet sir can you help me to future work of this energy efficient adaptive forwarding and also provide souce code

  184. i wanto integrate genetic algorithm based AODV to to detect an attack so if you have sample source code please hep me b/s am a student

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s