[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Bandwidth isn't correct in ns, it seems.
Hi-
One annoying thing about tcl is that when there are bugs in scripts, it quietly
accepts nonsense. Try this:
$cbr(0) set fake_nonsense_var 0
and look for errors (you won't see any), but things will often silently go
weird.
There are a couple of similar problems with your script:
* Setting an interval for UDP agent is not necessary (and doesn't make sense).
* You don't set packet size for CBR agents to 8000 (defaults to 210)
Also (not a bug) but if you're thinking in terms of rates you might just want to
try "$cbr($i) set rate_ 16Mb" rather than messing with intervals.
Making the above changes, the script works fine for me.
-Eric
--------------------------------------------
Eric H. Weigle CCS-1, RADIANT team
[email protected] Los Alamos National Lab
(505) 665-4937 http://home.lanl.gov/ehw/
--------------------------------------------