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!!!!!!!
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?
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...
ReplyDeletenum_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!!!!!!!
Hi,
DeleteThe 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/
Hello Ramakrishna
DeleteI 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?
Hi,
DeleteThe error is due to improper function call.