- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- problem working with manual routing
Hi all!!
I’m doing my Ends Career Proyect with Matlab and i need to use ns
to do some simple simulations. Unfortunately i’m new on it. I want
to work with Manual Routing, over wired networks. I’ve read the
Marc Greis’s tutorial and the NS for Beginners tutorial but they
don’t talk about it :(, and the Manual just includes a simple
paragraph and i don’t manage to run my simulation just with
it.
I’ve seen there exists two commands “add-route-to-adj-node $node”
and “add-route $node_dest $comm” to do it, and i manage to run a simple simulation using the first one, establishing default routes. But now i want to run a simple example, like this:
n0
|
|
n1
n2
|
|
n3
I want to send information from n0 to n2 and n3, , but i don’t find how to use the commands correctly to do it, neither in the documentation, nor at the ns mail list.
Can anyone help me please???
Thanks for any information you can give me :).
Pablo.
Continuing with the problem i mention on previous post, and to simplify the question, i’m trying to use command add-route to configure my tables. I have nodes in a simple square like this…
n0
n1
n2
n3
|_______________________|
and i want to send information between n0 and n1 trough n3-n2. I write this code
$ns rtproto Manual
$n0 add-route [$n1 id] $n3
$n1 add-route [$n1 id] $n2
$n3 add-route [$n1 id] $n1
and the simulation starts without any error but stops at the first step. Anybody knows what am i doing wrong??
Thanks again for any help :).
Pablo.
While I am trying the problem
I am getting split object unknown error
at the line $n1 add-route-to-adj-node -default $n2
I am using the command as follows
$ns rtproto Manual
set n1 [$ns node]
set n2 [$ns node]
$ns duplex-link $n1 $n2 10Mb 100ms DropTail
$n1 add-route-to-adj-node -default $n2