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

[ns] Manual routing.



Ok, I've been reading about this for a few days, all messages from this 
mailing list, manual (chapter 24, everything about nodes and all the stuff) 
but still can't get this thing working (latest ns).
What I need to do is just add some manual routes (just like I would with a 
router in a real network) but ns doesn't want to do it.
This is a simple example:

---n4---------n7-----n8
      \_n5__n6_/
  
My question now is this:
Can I manually add routes to my network simulation?
I tried Static routing, the best would be using "add-route" like this:

#$ns at 0.01 "$n4 add-route [$n8 id] $n5"

but it's not working, the flow stops at $n4.

I tried Manual routing using rproto Manual but still gives me errors lines 
like this:

[$n4 get-module "Manual"] add-route-to-adj-node -default $n5

invalid command name ""
    while executing
"[$n4 get-module "Manual"] add-route-to-adj-node -default $n5"
    (file "base.tcl" line 92)

I really don't know what to do, it should be so easy like in a real network 
but it's not and I don't understand why it's not.
Any help would be appreciated,

Giulio Ardoino