[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Urgent! What I do wrong?
Hello,
A problem I met is:
There is a new file "ns-rsvp.tcl". In this file, a instproc
"duplex-rsvp-link" has been defined and I have appended "source
ns-rsvp.tcl" to "ns-lib.tcl".
However, the error information is:
warning: Flag variable Simulator::NumberInterfaces_ discontinued.
Setting (or not) this variable will not affect the simulations.
_o3: unable to dispatch method duplex-rsvp-link
while executing
"$ns duplex-rsvp-link $n0 $n1 1Mb 1s 0.3 50 5000 Param Null"
(file "./tcl/ex/rsvp/rsvp_conf.tcl" line 43)
I can not understand why the instproc "duplex-rsvp-link" can not be
recongnised?
In "ns-rsvp.tcl", there are:
....
..
Simulator instproc duplex-rsvp-link { n1 n2 bw delay res signal lim adc est } {
$self duplex-intserv-link $n1 $n2 $bw $delay WFQ RSVPLink $adc $est CL
$self setup-rsvp-link $n1 $n2 $bw $res $signal $lim
$self setup-rsvp-link $n2 $n1 $bw $res $signal $lim
}
I am anxious for this error.
By the way, a simple question is what is wrong with define
"Numberinterfaces" in this way: "Simulator set NumberInterfaces_ 1"?
Hope somebody may give me advice as soon as possible!
Many thanks,
Sun Kai