1.进入ns-2.35/indep-util/cmu-scen-gen里面有个cbrgen.tcl文件,利用该文件可产生流量模型
to create CBR/TCP connecions, run
ns cbrgen.tcl [-type cbr|tcp] [-nn nodes] [-seed seed] [-mc connections]
[-rate rate]
For example ,
ns cbrgen.tcl -type cbr -nn 10 -seed 1 -mc 8 -rate 4
OR
ns cbrgen.tcl -type tcp -nn 25 -seed 0 -mc 20
note: You will need to pipe the outputs from above to a cbr-* or a tcp-*
output file.
本例:ns cbrgen.tcl -type cbr -nn 10 -seed 1 -mc 8 -rate 1 > filename (rate1 代表 每秒 512k)