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

[ns] Initial Window Error?



Hi Dear all
    I got one strange problem while setting up TCP agents. I got a error message
as follow:

Wrong number of wnd_init_option_ 0

I have checked my code carefully but still have no ideas what happened. Ever put
some check points and found that the script stop at the setting-up of
Agent/TCP/Vegas. Hope someone could give me a clue on where I can find such a
thing, or how to validate my simulation.
Thanks a lot
Regards

following is the content of source:
############# Set up TCP/Vegas Agent #############
Agent/TCP/Vegas set windowInitOption_ 1
Agent/TCP/Vegas set windowInit_ 1
for {set i 1} {$i <= 250} {incr i} {
  set vegas($i) [new Agent/TCP/Vegas]      <~~~~ Broken
  $vegas($i) set class_ 1
  $vegas($i) set fid_ 1
  $vegas($i) set v_alpha_ 1
  $vegas($i) set v_beta_ 3


  set sink($i) [new Agent/TCPSink]
  $ns attach-agent $src($i) $vegas($i)
  $ns attach-agent $dst($i) $sink($i)
  $ns connect $vegas($i) $sink($i)

  set ftp($i) [new Application/FTP]
  $ftp($i) attach-agent $vegas($i)

}

--

Robert Chung-Wen Ma
Postgraduate Student
ATM Lab. Dept. of EE, NCKU
1. University Rd., 70101
Tainan, Taiwan

Fax: +886-6-2081107
Phone: +886-6-2757575 ext 62445 ext 679
E-Mail: [email protected]