Forum Replies Created
Yes.
I think, technically that kind of comparison is possible if and only if the aquasim patched version of ns-2 is not not really distrubing the integrity and working of other agents or protocols of ns-2.
But, if it technically affecting other agents or protocols after patching it for aquasim, then you may need two seperate ns-2 installations – one with default ns-2 and the another with aquasim patch.
But my advise is : For safer side, run the two set of simulations (one with default ns-2 and another with aquasim patched ns-2) separately and then compare the two results by doing custom trace analysis on the two sets of trace outputs.
Charles Pandian
There are many ways to get/prepare a neighbor list at a node. For example,
1) at routing layer (example: you may enable hello mechanism in AODV and resolve neighbor list at a node)
2) at mac layer (like the way in which it is done in SMAC)
3) directly getting the information from GOD (this should be done only for statistical purposes – not for using that information in protocol desigh – but most people wrongly handle this information in their protocol design)
tracgegrapgh can help you to generate results
Can be get from the following webvsite.
If you get error of maximum lines exceed
Go to .cfg file and change maximum lines to 5000000000
While compiling NS2-2.28 does not give any error, but when I use antsense under tcl as protocol it stops with the following error.
INITIALIZE THE LIST xListHead
(_o17 cmd line 1)
invoked from within
“_o17 cmd if-queue _o20”
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 “_o17” line 2)
(SplitObject unknown line 2)
invoked from within
“$agent if-queue [$self set ifq_(0)] “
(procedure “_o14” line 24)
(Node/MobileNode add-target line 24)
invoked from within
“$self add-target $agent $port”
(procedure “_o14” line 15)
(Node attach line 15)
invoked from within
“$node attach $ragent [Node set rtagent_port_]”
(procedure “_o3” line 71)
(Simulator create-wireless-node line 71)
invoked from within
“_o3 create-wireless-node”
(“eval” body line 1)
invoked from within
“eval $self create-wireless-node $args”
(procedure “_o3” line 14)
(Simulator node line 14)
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 “wpan_demo1.tcl” line 109)
I’ll be grateful and thankful if can help me.
Then we can come up with a routing protocol based on genetic algorithm
While compiling NS2-2.28 does not give any error, but when I use antsense under tcl as protocol it stops with the following error.
INITIALIZE THE LIST xListHead
(_o17 cmd line 1)
invoked from within
“_o17 cmd if-queue _o20”
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 “_o17” line 2)
(SplitObject unknown line 2)
invoked from within
“$agent if-queue [$self set ifq_(0)] “
(procedure “_o14” line 24)
(Node/MobileNode add-target line 24)
invoked from within
“$self add-target $agent $port”
(procedure “_o14” line 15)
(Node attach line 15)
invoked from within
“$node attach $ragent [Node set rtagent_port_]”
(procedure “_o3” line 71)
(Simulator create-wireless-node line 71)
invoked from within
“_o3 create-wireless-node”
(“eval” body line 1)
invoked from within
“eval $self create-wireless-node $args”
(procedure “_o3” line 14)
(Simulator node line 14)
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 “wpan_demo1.tcl” line 109)
I’ll be grateful and thankful if can help me.
While compiling NS2-2.28 does not give any error, but when I use antsense under tcl as protocol it stops with the following error.
INITIALIZE THE LIST xListHead
(_o17 cmd line 1)
invoked from within
“_o17 cmd if-queue _o20”
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 “_o17” line 2)
(SplitObject unknown line 2)
invoked from within
“$agent if-queue [$self set ifq_(0)] “
(procedure “_o14” line 24)
(Node/MobileNode add-target line 24)
invoked from within
“$self add-target $agent $port”
(procedure “_o14” line 15)
(Node attach line 15)
invoked from within
“$node attach $ragent [Node set rtagent_port_]”
(procedure “_o3” line 71)
(Simulator create-wireless-node line 71)
invoked from within
“_o3 create-wireless-node”
(“eval” body line 1)
invoked from within
“eval $self create-wireless-node $args”
(procedure “_o3” line 14)
(Simulator node line 14)
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 “wpan_demo1.tcl” line 109)
I’ll be grateful and thankful if can help me.