[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Obtain routing table
Hi,
i have no experience with MPLS, so i don`t know if
there are problems with the interaction with DV,
anyway you could try defining a proc in your tcl
script, for instance:
proc mydump {} {
global ns
set now [$ns now]
puts "Routing table at time $now"
$ns dump-routelogic-nh
$ns dump-routelogic-distance
}
or
proc mydump2 {node fh} {
global ns
set now [$ns now]
puts "Routing table of node $node at time $now"
set dr [$node rtObject?]
$dr dump-routes $fh
}
"mydump" gives you the routing table of all nodes
"mydump2" gives you the routing table of a specified
node and writes the output on a file (fh)
you can get the routing table at several time instants
using lines such as
$ns at 3.1 "mydump"
or
$ns at 2.9 "mydump2 $n(2) $fh"
Cheers,
Andrea.
--- JOSE LUIS PEREZ PACHECO
<[email protected]> ha scritto: > Hi all,
>
> I'm doing a simulation about MPLS, and I want to
> obtain the routing table create by "$ns rtproto DV".
> How can I get this table?
>
> Thanks for advance
> Josep
>
______________________________________________________________________
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it