Hello!

I'd like to discover the features of ns (I have ns2.29), for
simulating networks with routers and QoS.


I want to create the following exemple where only some nodes are
routers (R1, R2 and R3)
# S--------------R1 --------- R2 ---------- D (between the R1, R2, R3:
100Mb, 1ms)
#  10Mb, 3ms       \         /   1Mb, 5ms
#                    \     /
#                      R3

I've looked into NS Doc at Chapter 27 (routing), and I found this line:
$ns rtproto DV $n1 $n2 $n3 ;# Run DV agents on nodes $n1, $n2, and $n3

So I have tried this:
$ns rtproto DV $R1 $R2 $R3
where R1, R2 and R3 are set as simply [$ns node]

Yet, I obtain this error (no error if the line before is:$ns rtproto DV) :
-----------------------------------------------------
wrong # args: should be "set varName ?newValue?"
    while executing
"set nodeslist _o10 _o13 _o16"
    ("eval" body line 1)
    invoked from within
"eval "set nodeslist $args""
    (procedure "Agent/rtProto/DV" line 5)
    (Agent/rtProto/DV init-all line 5)
    invoked from within
"Agent/rtProto/DV init-all _o10 _o13 _o16"
    ("eval" body line 1)
    invoked from within
"eval Agent/rtProto/$proto init-all $rtprotos_($proto)"
    ("foreach" body line 2)
    invoked from within
"foreach proto [array names rtprotos_] {
eval Agent/rtProto/$proto init-all $rtprotos_($proto)
}"
    invoked from within
"if [info exists rtprotos_] {
foreach proto [array names rtprotos_] {
eval Agent/rtProto/$proto init-all $rtprotos_($proto)
}
} else {
Agent/rtProto/St..."
    (procedure "_o130" line 3)
    (RouteLogic configure line 3)
    invoked from within
"[$self get-routelogic] configure"
    (procedure "_o3" line 5)
    (Simulator run line 5)
    invoked from within
"$ns run"
    (file "2Routeurs_rtprotoNoeuds.tcl" line 67)
-----------------------------------

Can anyone give me a hand about this?
Thank you in advance,

Best regards, Oriana

Reply via email to