| 1 |
#! /bin/csh |
| 2 |
|
| 3 |
rm -f flow* tmp* dropRate* data* |
| 4 |
rm -f tfrc/flows* tfrc/tmp* tfrc/dropRate* tfrc/data* |
| 5 |
|
| 6 |
|
| 7 |
set t1=500 |
| 8 |
foreach try ( 1 2 3 4 5 ) |
| 9 |
echo "Doing iteration $try" |
| 10 |
foreach flows ( 8 12 16 20 24 28 32 ) |
| 11 |
echo "Doing flows ${flows}" |
| 12 |
ns red-pd.tcl one netTFRC TFRC enable 0 rtt 0.060 flows ${flows} verbose 1 time $t1 > tmp0-${try}-${flows} |
| 13 |
mv one.netTFRC.TFRC.0.flows flows0-${try}-${flows} |
| 14 |
ns red-pd.tcl one netTFRC TFRC rtt 0.060 flows ${flows} verbose 1 time $t1 > tmp1-${try}-${flows} |
| 15 |
mv one.netTFRC.TFRC.1.flows flows1-${try}-${flows} |
| 16 |
end |
| 17 |
end |
| 18 |
|
| 19 |
tfrc/tfrc.pl flows0 0 $t1 5 |
| 20 |
tfrc/tfrc.pl flows1 1 $t1 5 |
| 21 |
|
| 22 |
mv flows* tmp* data* dropRate* tfrc |
| 23 |
cd tfrc |
| 24 |
gnuplot tfrc.gp |
| 25 |
gv tfrcLow.ps & |
| 26 |
gv tfrcHigh.ps & |
| 27 |
gv tfrc.ps & |
| 28 |
gv tfrc-dropRate.ps & |
| 29 |
|
| 30 |
cd .. |
| 31 |
|