Sometimes, small things takes long time to resolve. Today, I was creating cbr-traffic. Although, I have done this thing several times before, it took me 30 minutes. I forgot how I did before. I just check the readme file and tried to follow but it didn't work. I didn't check the ~/indep-utils/cmu-scen-gen/cbrgen.tcl file. Thanks, ns-miling list, I found the answer. It's because of the rate_ should be in float.
http://mailman.isi.edu/pipermail/ns-users/2009-June/065873.html
Rate in this is a bit confusing. But, if we check the cbrgen.tcl, it's clear.
http://mailman.isi.edu/pipermail/ns-users/2003-July/034527.html
Anyways, the command should be like:
ns cbrgen.tcl -type cbr -nn 30 -seed 29 -mc 8 -rate 100.0 > cbr-x-x.tcl
A very good article about the setdest and traffic generation is here:
http://www.winlab.rutgers.edu/~zhibinwu/html/ns2_wireless_scene.htm
Few useful commands in Linux:
To find particular type of file in current folder and subfolders:
$find ./ -name
e.g.
find ./ -name delay.txt
To delete particular type of file from folders and subfolders:
$ find ./ -name delay.awk -exec rm {} \;
No comments:
Post a Comment