Saturday, November 17, 2012

nrlsensorsim patching to ns-2.27

Please find the details in the below given link:

http://ppvbhat.blogspot.in/2012/07/ns-227-installation-on-fc8-with.html

4 comments:

  1. Sir, I'm trying to add a new protocol called TCPZIG in ns2.... I'm unable to run the tcl script with TCPZIG protocol.... It shows the following error...
    num_nodes is set 4
    warning: no class variable Agent/TCPZIG::seqno_

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

    warning: no class variable Agent/TCPZIG::interval_

    warning: no class variable Agent/TCPZIG::packetSize_

    warning: no class variable Agent/TCPZIG::maxpkts_

    warning: no class variable Agent/TCPZIG::random_

    warning: no class variable Agent/TCPZIG::coefficient

    warning: no class variable Agent/TCPZIG::flowid


    (_o68 cmd line 1)
    invoked from within
    "_o68 cmd addr 1.0.0"
    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 "_o68" line 2)
    (SplitObject unknown line 2)
    invoked from within
    "$ragent addr $addr"
    (procedure "_o3" line 4)
    (Simulator create-tcpzig-agent line 4)
    invoked from within
    "$self create-tcpzig-agent $node"
    ("TCPZIG" 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 1.0.0"
    ("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 [lindex $temp 0]"
    invoked from within
    "set BS(0) [$ns_ node [lindex $temp 0]]"
    (file "wwdemo.tcl" line 74)

    How can I correct this.... I'm not able to run only this protocol.... I'm able to run all protocols such as AODV, DSDV, TORA, DSR, etc..,
    Kindly help me out!!!!!!!

    ReplyDelete
    Replies
    1. Hi,

      The Error are due to incomplete procedure of adding new protocols to NS-2.

      http://elmurod.net/index.php/2010/01/20/how-to-add-new-routing-protocol-in-ns2/

      Delete
    2. Hello Ramakrishna
      I added a new function to DSDV protocol. I get the same error as above.

      error is
      (_o68 cmd line 1)
      invoked from within
      "_o68 cmd num"
      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 "_o68" line 2)
      (SplitObject unknown line 2)
      invoked from within
      "$count num"


      here i am not adding a new protocol to ns2 but just adding a functionn to the existing one. wat do i do?

      Delete
    3. Hi,

      The error is due to improper function call.

      Delete