$ns_ at 60.0 "$node_(0) off" now works but i still can see packets being
sent (and received) from node 0 after it was shutdown in the trace file...
Any ideas?
Greats,
Patrick
>
> Hi all,
>
> Thank you for answering but i tried the
> $ns_ at 60.0 "$node_(0) off"
>
> command which gave me the segment fault error, i then added the
> energymodel to the node and here's what i get when i try running the
> simulation:
>
> ns: _o17 reset-state:
> (_o17 cmd line 1)
> invoked from within
> "_o17 cmd reset-state"
> 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
> "_o17 reset-state"
>
>
> here is my nodeconfig in the Tcl script
>
> $ns_ node-config -adhocRouting $val(adhocRouting) \
> -llType $val(ll) \
> -macType $val(mac) \
> -ifqType $val(ifq) \
> -ifqLen $val(ifqlen) \
> -antType $val(ant) \
> -propType $val(prop) \
> -phyType $val(netif) \
> -channel $chan_1_ \
> -topoInstance $topo \
> -agentTrace ON \
> -routerTrace ON \
> -macTrace OFF \
> -energyModel EnergyModel \
> -rxPower 0.3 \
> -txPower 0.6 \
> -initialEnergy 0.1
>
> can anyone help me with this output ? and please could someone explain the
> difference between the
>
> $ns_ at 60.0 "$node_(0) off"
>
> and
>
> $ns_ rtmodel-at 60.0 down $node_(0)
>
> is the 1st one only available when using an energy model? and how come the
> second one has no effect on wireless nodes
>
> PS: i am using a 802.11 model
>
> any help would be greatly appreciated
>
>
>
>
>
> ---------------------------- Message original ----------------------------
> Objet: Re: [ns] shutting down link or node with wireless topology
> De: "Daniel Dekst" <[EMAIL PROTECTED]>
> Date: Jeu 28 juin 2007 3:42
> À: [email protected]
> --------------------------------------------------------------------------
>
>
> seems "$node off" works
>
> ---------------------------------
> ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡
>
>
>