[ns] Help with error
Oladapo Oluwadiya
ooluwadiya at yahoo.com
Wed Jul 22 14:19:54 PDT 2009
hello,
i got this error when i tried simulating a mobile ip scenario in ns.though the simulation runs,but runs just for 9.6s instead of 1010s set in script.
Sorting lists....Done!
ns: _o159 setdest 600.000000000000 1000.0000000000 1.000000000000:
(_o159 cmd line 1)
invoked from within
"_o159 cmd setdest 600.000000000000 1000.000000000000 1.000000000000"
invoked from within
"catch "$self cmd $arg" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorinfo
set savedInfo $error Info
error "error when calling class $cls: $args" $..."
(procedure " _o159" line 2)
(SplitObject unknown line 2)
invoked from within
"_o159 setdest 600.000000000000 1000.000000000000 1.000000000000"
below is part of the code involved in the error...
# create a mobilenode that would be moving between HA and FA.
# note address of MH indicates its in the same domain as HA.
$ns_ node-config -wiredRouting OFF
set MH [$ns_ node 1.0.1]
set node_(0) $MH
set HAaddress [AddrParams addr2id [$HA node-addr]]
[$MH set regagent_] set home_agent_ $HAaddress
# movement of the MH
$MH set Z_ 0.000000000000
$MH set Y_ 1000.000000000000
$MH set X_ 250.000000000000
# MH starts to move towards FA1
$ns_ at 10.000000000000 "$MH setdest 600.000000000000 1000.000000000000 1.000000000000"
# MH move from FA1 towards FA2
$ns_ at 360.000000000000 "$MH setdest 600.000000000000 350.000000000000 1.000000000000"
# MH move from FA2 towards FA3
$ns_ at 1010.000000000000 "$MH setdest 250.000000000000 350.000000000000 1.000000000000"
More information about the Ns-users
mailing list