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

Re: How to manual configure 2 separate paths?



Hi,

My understanding of ManualRtNode is:
    It is based on Hash/Dest classifier... thus when you first set path one
(n1-n2) using add-route-to-adj-node ... , the neigbour node will become the
default route to the current node calling this procedure...   e.g:    -> $r1
add-...-node -default $r2,
then a call to           -> $r1 add-...-node -default $r3, will reset the
hash entry.
        Thus route 1 and route 2 will be aggregated together.... and if you
try to reverse on of the path, you will get result like the traffic flowing
back to the source...
 This all because the hash entry are based on the Destination
only (classifier: Hash/Dest)....


>
> $node add-routes <dst> <Target>
>
> esp. the <Target> argument.
>

Take a look at ManualRtNode code in ~/ns-2.1xx/tcl/lib/ns-node.tcl

Hope I answer your questions...


Regards
Tan Su Wei