[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Next node which is going to be used in the routing ??



Hi Yaonn,

Well, I think you wouldn't have this error if the simulation had begun.
Retry scheduling the command after the simulation begins.

Cheers,
Abdelhamid JOUMDANE

"Yoann NEC, Japan" wrote:
> 
> Hello everybody !
> 
> MY PURPOSE IS TO KNOW THE NEXT NODE THAT N0 IS GOING TO USE TO REACH N2.
> 
> Here is the very simple script :
> 
> set n0 [$ns node]
> set n1 [$ns node]
> set n2 [$ns node]
> $ns duplex-link $n0 $n1 1Mb 10ms DropTail
> $ns duplex-link $n1 $n2 1Mb 10ms DropTail
> 
> # get the instance of routelogic
> set rl [$ns get-routelogic]
> # perform the lookup
> $rl lookup [$n0 id] [$n2 id]
> 
> but, it is not working ! The "lookup" gets an error and it returns
> "-279125288"
> 
> I WILL BE VERY GREATFUL TO THE PERSON WHO WILL HELP ME.
> 
> PLEEEEASE HELP ME !!
> 
> Yoann