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

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



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