leach protocol

8 views
Skip to first unread message

Ragvinder Kaur

unread,
Jul 30, 2026, 4:29:05 AM (10 days ago) Jul 30
to Network Simulator 2 (NS2)
i am  installing a leach protocol in ns2.35 but i get erros like
cat mit/leach_sims/leach.err
no reachable alloc
    (Class create line 1)
    invoked from within
"Resource/Energy create _o20 "
    invoked from within
"catch "$className create $o $args" msg"
    invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
    (procedure "new" line 3)
    invoked from within
"new Resource/Energy"
    (procedure "_o17" line 17)
    (MobileNode/ResourceAwareNode init line 17)
    invoked from within
"_o17 init "
    (Class create line 1)
    invoked from within
"MobileNode/ResourceAwareNode create _o17 "
    invoked from within
"catch "$className create $o $args" msg"
    invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
    (procedure "new" line 3)
    invoked from within
"new MobileNode/ResourceAwareNode"
    (procedure "leach-create-mobile-node" line 13)
    invoked from within
"leach-create-mobile-node $i"
    invoked from within
"if { [string compare $opt(rp) "dsr"] == 0} {
for {set i 0} {$i < $opt(nn) } {incr i} {
dsr-create-mobile-node $i
}
} elseif { [string compare $op..."
    (file "tcl/ex/wireless.tcl" line 256)

please help me how to fix that
thanks

knudfl

unread,
Aug 5, 2026, 2:44:24 AM (4 days ago) Aug 5
to Network Simulator 2 (NS2)
Reply all
Reply to author
Forward
0 new messages